Skip to content

Commit 2065478

Browse files
committed
fix: cancel all copilot requests for a project when manually copilot is added
1 parent f7579a0 commit 2065478

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/projectMemberInvites/update.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ module.exports = [
212212
status: COPILOT_OPPORTUNITY_STATUS.CANCELED,
213213
}, {
214214
where: {
215-
copilotRequestId: {
216-
[Op.in]: allCopilotOpportunityByRequestIds,
215+
id: {
216+
[Op.in]: allCopilotOpportunityByRequestIds.map(item => item.id),
217217
},
218218
},
219219
transaction: t,

0 commit comments

Comments
 (0)