Skip to content

Commit b3e4f8e

Browse files
committed
fix: allow action to be empty string
1 parent 993ea57 commit b3e4f8e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/routes/projectMembers/update.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import models from '../../models';
1010
import util from '../../util';
1111
import { EVENT, RESOURCES, PROJECT_MEMBER_ROLE, COPILOT_REQUEST_STATUS, COPILOT_OPPORTUNITY_STATUS, COPILOT_APPLICATION_STATUS, USER_ROLE, CONNECT_NOTIFICATION_EVENT, TEMPLATE_IDS } from '../../constants';
1212
import { PERMISSION, PROJECT_TO_TOPCODER_ROLES_MATRIX } from '../../permissions/constants';
13+
import { createEvent } from '../../services/busApi';
1314

1415

1516
/**
@@ -135,10 +136,10 @@ const completeAllCopilotRequests = async (req, projectId, _transaction, _member)
135136
allCopilotRequests.forEach((request) => {
136137
const requestData = request.data;
137138

138-
req.log.debug(`Copilot request data: ${requestData}`);
139+
req.log.debug(`Copilot request data: ${JSON.stringify(requestData)}`);
139140
const opportunity = copilotOpportunites.find(item => item.copilotRequestId === request.id);
140141

141-
req.log.debug(`Opportunity: ${opportunity}`);
142+
req.log.debug(`Opportunity: ${JSON.stringify(opportunity)}`);
142143
createEvent(emailEventType, {
143144
data: {
144145
opportunity_details_url: `${copilotPortalUrl}/opportunity/${opportunity.id}`,

0 commit comments

Comments
 (0)