From db8d2a6513dbed746477a7a009cdfbc3d62e0709 Mon Sep 17 00:00:00 2001 From: Rik Smale Date: Fri, 18 Dec 2020 23:47:48 +0100 Subject: [PATCH] chore(deep-assign): fix usage in events.js --- lib/events.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/events.js b/lib/events.js index 79ef661f1..f4334c63a 100644 --- a/lib/events.js +++ b/lib/events.js @@ -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'); @@ -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 },