Skip to content

Commit 3a5d25d

Browse files
committed
finished builders jsdoc
1 parent 2ff9d74 commit 3a5d25d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/builders/project-query.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
/**
2-
* Returns project query for past/upcoming launches
3-
*/
41

2+
// Prevent incorrect input
53
const lowerCase = require('lower-case');
64

5+
/**
6+
* Builds Mongo projection object to show/hide document id field
7+
* @param {Object} req The Express request object to access querystrings
8+
* @return {Object} Mongo compatible projection object
9+
*/
10+
711
exports.queryProject = (req) => {
812
const query = {};
913

0 commit comments

Comments
 (0)