lib/fetching/sourceToChannel.js
/**
 * Fetches the Source with the given ID from the database,
 * including the Credentials that the Source uses.
 */
Fetches the Source with the given ID from the database,
including the Credentials that the Source uses.
Fetches the Source with the given ID from the database including the Credentials that the Source uses .
async function fetchSourceByID(src) {
    const { _id: sourceID } = src;
    const source = await Source
        .findById(sourceID)
        .populate({ path: 'credentials' })
        .exec();
    return source;
}
async function fetchSourceByID ( src ) { const { _id : sourceID } = src ; const source = await Source . findById ( sourceID ) . populate ( { path : 'credentials' } ) . exec ( ) ; return source ; }
Fetches the Source with the given ID from the database,
 including the Credentials that the Source uses.
Fetches the Source with the given ID from the database including the Credentials that the Source uses .