Skip to content

Commit

Permalink
chore(deep-assign): fix usage in events.js
Browse files Browse the repository at this point in the history
  • Loading branch information
WikiRik committed Dec 18, 2020
1 parent 310b6e4 commit db8d2a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/events.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const moment = require('moment');
const deepAssign = require('deep-assign');
const lodash = require('lodash');

const errors = require('./errors');
const constants = require('./constants');
Expand Down Expand Up @@ -166,7 +166,7 @@ exports.listUserAppliedEvents = async (req, res) => {
select: constants.EVENT_PUBLIC_FIELDS
};

const queryObj = deepAssign(defaultQueryObj, {
const queryObj = lodash.merge(defaultQueryObj, {
where: {
'$applications.user_id$': req.user.id
},
Expand Down

0 comments on commit db8d2a6

Please sign in to comment.