Skip to content

Commit

Permalink
Add jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewmeyer committed Mar 2, 2018
1 parent a54b227 commit 53ce43e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/builders/launch-query.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@

/**
* Returns launch query object from optional querystring inputs
*/
* Builds Mongo query for past/upcoming launch endpoints from querystrings
* @param {Object} req The Express request object to build queries
* @return {Object} Mongo compatible query object
*/

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

exports.launchQuery = (req) => {
module.exports.launchQuery = (req) => {
const query = {};

if (req.query.flight_id) {
Expand Down

0 comments on commit 53ce43e

Please sign in to comment.