From 28b184e0ca544a834bf2d99ecbcbdadb7ac91c67 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Wed, 9 Mar 2016 14:02:07 +0000 Subject: [PATCH] fix incorrect use of _.union (argument must be array) --- services/track-changes/app/coffee/UpdatesManager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/track-changes/app/coffee/UpdatesManager.coffee b/services/track-changes/app/coffee/UpdatesManager.coffee index bea6b41224..6c6cf7cf01 100644 --- a/services/track-changes/app/coffee/UpdatesManager.coffee +++ b/services/track-changes/app/coffee/UpdatesManager.coffee @@ -221,7 +221,7 @@ module.exports = UpdatesManager = if earliestUpdate and earliestUpdate.meta.start_ts - update.meta.end_ts < @TIME_BETWEEN_DISTINCT_UPDATES # check if the user in this update is already present in the earliest update, # if not, add them to the users list of the earliest update - earliestUpdate.meta.user_ids = _.union earliestUpdate.meta.user_ids, update.meta.user_id + earliestUpdate.meta.user_ids = _.union earliestUpdate.meta.user_ids, [update.meta.user_id] doc_id = update.doc_id.toString() doc = earliestUpdate.docs[doc_id]