Skip to content

Commit 3384c80

Browse files
committed
Added jsdoc to helpers
1 parent adabdf5 commit 3384c80

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/helpers/launch-database.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ const launch = require('../builders/launch-query');
33
const sort = require('../builders/launch-sort');
44
const project = require('../builders/project-query');
55

6+
/**
7+
* Fetches past or upcoming launches with built queries
8+
* @param {string} collection The Mongo collection to search
9+
* @param {Object} req The Express request object to build queries
10+
* @return {Array} The Mongo array of objects
11+
*/
12+
613
module.exports.fetchLaunch = async (collection, req) => {
714
return global.db
815
.collection(collection)

0 commit comments

Comments
 (0)