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 4defcf7 commit cc46a74Copy full SHA for cc46a74
src/routes/projectMemberInvites/delete.js
@@ -91,7 +91,7 @@ module.exports = [
91
req.log.info("All pending invites which are open", allPendingInvitesForApplication);
92
// If only the current invite is the open one's
93
// then the application status has to be moved to pending status
94
- if (allPendingInvitesForApplication.length === 1) {
+ if (allPendingInvitesForApplication.length === 0) {
95
await models.CopilotApplication.update({
96
status: COPILOT_APPLICATION_STATUS.PENDING,
97
}, {
0 commit comments