Skip to content

Commit cc46a74

Browse files
committed
fix: move application to pending when all invites are rejected
1 parent 4defcf7 commit cc46a74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/projectMemberInvites/delete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ module.exports = [
9191
req.log.info("All pending invites which are open", allPendingInvitesForApplication);
9292
// If only the current invite is the open one's
9393
// then the application status has to be moved to pending status
94-
if (allPendingInvitesForApplication.length === 1) {
94+
if (allPendingInvitesForApplication.length === 0) {
9595
await models.CopilotApplication.update({
9696
status: COPILOT_APPLICATION_STATUS.PENDING,
9797
}, {

0 commit comments

Comments
 (0)