Skip to content

Commit

Permalink
DOP-4549-c add extra error check
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed May 9, 2024
1 parent 28e4ce7 commit 39b8629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/controllers/v1/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const DisplayRepoOptions = async (event: APIGatewayEvent): Promise<APIGat

const entitledBranches = await buildEntitledGroupsList(entitlement, repoBranchesRepository);
const resp = await slackConnector.displayRepoOptions(entitledBranches, key_val['trigger_id'], isAdmin);
if (resp?.status == 200 && resp?.data) {
if (resp?.status == 200 && resp?.data?.ok) {
return {
statusCode: 200,
body: 'Model requested',
Expand Down

0 comments on commit 39b8629

Please sign in to comment.