Skip to content

Commit

Permalink
username added on query
Browse files Browse the repository at this point in the history
  • Loading branch information
tareq89 committed Oct 5, 2016
1 parent 898acb3 commit 56993c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions queryMaker.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ module.exports = {
};
return dynObj;
} else if ((params.query.usertype === "USER" || params.query.usertype === "ENTERPRISE")
&& params.query.userid && params.query.userid.length === 24) {
&& params.query.username) {
return {
"User.UserId" : params.query.userid,
"User.UserName" : params.query.username,
"CreateTime" : {
$gte: new Date(params.query.startdate),
$lt: new Date(params.query.enddate),
Expand Down
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ router.get('/', function(req, res){

// Parameters:
// usertype = USER BIKE_MESSENGER ENTERPRISE
// userid = Asset's user id
// userid = Asset's user id or username = USER's or ENTERPRISE's UserName
// startdate = ISOdate
// enddate = ISOdate
// generateexcel = boolean
Expand Down Expand Up @@ -76,7 +76,7 @@ router.get('/report', function (req, res) {

// Parameters:
// usertype = USER BIKE_MESSENGER ENTERPRISE
// userid = Asset's user id
// userid = Asset's user id or username = USER's or ENTERPRISE's UserName
// startdate = ISOdate
// enddate = ISOdate
// generateexcel = boolean
Expand Down

0 comments on commit 56993c2

Please sign in to comment.