Skip to content

Commit c608346

Browse files
committed
Merge branch 'develop' into PM-577
2 parents 0372f83 + 4b7990b commit c608346

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
up: async (queryInterface, Sequelize) => {
3+
await queryInterface.addColumn('copilot_requests', 'copilotOpportunityId', {
4+
type: Sequelize.BIGINT,
5+
allowNull: true,
6+
references: {
7+
model: 'copilot_opportunities',
8+
key: 'id',
9+
},
10+
onUpdate: 'CASCADE',
11+
onDelete: 'SET NULL',
12+
});
13+
},
14+
15+
down: async (queryInterface) => {
16+
await queryInterface.removeColumn('copilot_requests', 'copilotOpportunityId');
17+
},
18+
};

src/permissions/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ export const PERMISSION = { // eslint-disable-line import/prefer-default-export
611611
topcoderRoles: [
612612
...TOPCODER_ROLES_ADMINS,
613613
USER_ROLE.COPILOT_MANAGER,
614+
USER_ROLE.PROJECT_MANAGER,
614615
],
615616
scopes: SCOPES_PROJECT_INVITES_WRITE,
616617
},

src/routes/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ router.get(`/${apiVersion}/projects/health`, (req, res) => {
2626
// List of public routes
2727
const publicRoutes = [
2828
`/${apiVersion}/projects/copilots/opportunities`,
29-
`/${apiVersion}/projects/copilot/opportunities/:id(\\d+)`,
29+
`/${apiVersion}/projects/copilot/opportunity/:id(\\d+)`,
3030
];
3131

3232
// All project service endpoints need authentication

0 commit comments

Comments
 (0)