Skip to content

Commit aa1e410

Browse files
author
Vikas Agarwal
committed
possible fix for spurious project progress update event
1 parent 68a9c03 commit aa1e410

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/phases/update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ module.exports = [
158158
{ correlationId: req.id },
159159
);
160160
req.app.emit(EVENT.ROUTING_KEY.PROJECT_PHASE_UPDATED,
161-
{ req, original: previousValue, updated });
161+
{ req, original: previousValue, updated: _.clone(updated.get({ plain: true })) });
162162

163163
res.json(util.wrapResponse(req.id, updated));
164164
})

0 commit comments

Comments
 (0)