Skip to content

Commit 3a4fc53

Browse files
committed
fix: added new application status
1 parent d691100 commit 3a4fc53

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ workflows:
149149
context : org-global
150150
filters:
151151
branches:
152-
only: ['develop', 'migration-setup', 'pm-1168_1']
152+
only: ['develop', 'migration-setup']
153153
- deployProd:
154154
context : org-global
155155
filters:

src/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const COPILOT_REQUEST_STATUS = {
2020

2121
export const COPILOT_APPLICATION_STATUS = {
2222
PENDING: 'pending',
23+
INVITED: 'invited',
2324
ACCEPTED: 'accepted',
2425
};
2526

src/routes/copilotOpportunity/assign.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,12 @@ module.exports = [
153153
categories: [`${process.env.NODE_ENV}:${emailEventType}`.toLowerCase()],
154154
}, req.log);
155155

156+
await application.update({
157+
status: COPILOT_APPLICATION_STATUS.INVITED,
158+
}, {
159+
transaction: t,
160+
});
161+
156162
res.status(200).send({ id: applicationId });
157163
}).catch(err => next(err));
158164
},

0 commit comments

Comments
 (0)