Skip to content

Commit e208bc1

Browse files
committed
fix: updated toast message
1 parent 6b9eed9 commit e208bc1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/routes/copilotOpportunity/assign.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,19 @@ module.exports = [
190190
transaction: t,
191191
});
192192

193+
await opportunity.update({
194+
status: COPILOT_OPPORTUNITY_STATUS.COMPLETED,
195+
}, {
196+
transaction: t,
197+
});
198+
199+
200+
await copilotRequest.update({
201+
status: COPILOT_REQUEST_STATUS.FULFILLED,
202+
}, {
203+
transaction: t,
204+
});
205+
193206
// Cancel other applications
194207
const otherApplications = await models.CopilotApplication.findAll({
195208
where: {

0 commit comments

Comments
 (0)