Skip to content

Commit 3bf61b2

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

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/routes/projectMemberInvites/delete.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,7 @@ module.exports = [
8585
// update the application if the invite
8686
// originated from copilot opportunity
8787
if (invite.applicationId) {
88-
req.log.info("Invite originated from the application id", invite.applicationId);
8988
const allPendingInvitesForApplication = await models.ProjectMemberInvite.getPendingInvitesForApplication(invite.applicationId);
90-
91-
req.log.info("All pending invites which are open", allPendingInvitesForApplication);
9289
// If only the current invite is the open one's
9390
// then the application status has to be moved to pending status
9491
if (allPendingInvitesForApplication.length === 0) {

src/routes/projectMemberInvites/update.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,7 @@ module.exports = [
170170
// update the application if the invite
171171
// originated from copilot opportunity
172172
if (updatedInvite.applicationId) {
173-
req.log.info("Invite originated from the application id", invite.applicationId);
174173
const allPendingInvitesForApplication = await models.ProjectMemberInvite.getPendingInvitesForApplication(invite.applicationId);
175-
176-
req.log.info("All pending invites which are open", allPendingInvitesForApplication);
177174
// If only the current invite is the open one's
178175
// then the application status has to be moved to pending status
179176
if (allPendingInvitesForApplication.length === 0) {

0 commit comments

Comments
 (0)