We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3390fc commit 66a6ffaCopy full SHA for 66a6ffa
src/routes/copilotOpportunity/delete.js
@@ -45,19 +45,21 @@ module.exports = [
45
transaction,
46
});
47
48
- applications.update({
49
- status: COPILOT_APPLICATION_STATUS.CANCELED,
50
- }, {
51
- transaction,
+ applications.forEach(async (application) => {
+ await application.update({
+ status: COPILOT_APPLICATION_STATUS.CANCELED,
+ }, {
52
+ transaction,
53
+ });
54
55
- copilotRequest.update({
56
+ await copilotRequest.update({
57
status: COPILOT_REQUEST_STATUS.CANCELED,
58
}, {
59
60
61
- opportunity.update({
62
+ await opportunity.update({
63
status: COPILOT_OPPORTUNITY_STATUS.CANCELED,
64
65
0 commit comments