Skip to content

Commit ded8a7c

Browse files
committed
fix: send source as part of project member invite
1 parent db388bc commit ded8a7c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/routes/copilotOpportunity/assign.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ module.exports = [
107107
req,
108108
EVENT.ROUTING_KEY.PROJECT_MEMBER_INVITE_CREATED,
109109
RESOURCES.PROJECT_MEMBER_INVITE,
110-
{
111-
...invite.toJSON(),
110+
Object.assign({}, invite.toJSON(), {
112111
source: 'copilot_portal',
113-
});
112+
}),
113+
);
114114

115115
await application.update({
116116
status: COPILOT_APPLICATION_STATUS.INVITED,

src/routes/projectMemberInvites/create.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,10 @@ module.exports = [
411411
req,
412412
EVENT.ROUTING_KEY.PROJECT_MEMBER_INVITE_CREATED,
413413
RESOURCES.PROJECT_MEMBER_INVITE,
414-
{
415-
...v.toJSON(),
414+
Object.assign({}, v.toJSON(), {
416415
source: 'work_manager',
417-
});
416+
}),
417+
);
418418

419419
req.log.debug(`V: ${JSON.stringify(v)}`);
420420
// send email invite (async)

0 commit comments

Comments
 (0)