Skip to content

Commit 0d02782

Browse files
committed
fix: complete the copilot requests if the incoming role is observer or customer
1 parent af842b0 commit 0d02782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/projectMembers/update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ module.exports = [
154154
req.log.debug(`updated props ${JSON.stringify(updatedProps)}`);
155155
req.log.debug(`previous values ${JSON.stringify(previousValue)}`);
156156
// no updates if no change
157-
if ((updatedProps.role === previousValue.role || action === 'overwrite') &&
157+
if ((updatedProps.role === previousValue.role || action === 'complete-copilot-requests') &&
158158
(_.isUndefined(updatedProps.isPrimary) ||
159159
updatedProps.isPrimary === previousValue.isPrimary)) {
160160
await completeAllCopilotRequests(req, projectId, _transaction);

0 commit comments

Comments
 (0)