Skip to content

Commit aa5cc62

Browse files
committed
fix: cancel all copilot requests for a project when manually copilot is added
1 parent 0a3317a commit aa5cc62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/routes/projectMemberInvites/update.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import validate from 'express-validation';
22
import _ from 'lodash';
33
import Joi from 'joi';
4+
import { Op } from 'sequelize';
45
import { middleware as tcMiddleware } from 'tc-core-library-js';
56
import models from '../../models';
67
import util from '../../util';
78
import { INVITE_STATUS, EVENT, RESOURCES, COPILOT_APPLICATION_STATUS, COPILOT_OPPORTUNITY_STATUS, COPILOT_REQUEST_STATUS, INVITE_SOURCE } from '../../constants';
89
import { PERMISSION } from '../../permissions/constants';
9-
import { Op } from 'sequelize';
10+
1011

1112
/**
1213
* API to update invite member to project.

0 commit comments

Comments
 (0)