Skip to content

Commit 53ce43e

Browse files
committed
Add jsdoc
1 parent a54b227 commit 53ce43e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/builders/launch-query.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
12
/**
2-
* Returns launch query object from optional querystring inputs
3-
*/
3+
* Builds Mongo query for past/upcoming launch endpoints from querystrings
4+
* @param {Object} req The Express request object to build queries
5+
* @return {Object} Mongo compatible query object
6+
*/
47

8+
// Required to correctly output ObjectID's
59
const ObjectId = require('mongodb').ObjectID;
610

7-
exports.launchQuery = (req) => {
11+
module.exports.launchQuery = (req) => {
812
const query = {};
913

1014
if (req.query.flight_id) {

0 commit comments

Comments
 (0)