Skip to content

Commit

Permalink
DOP-4549 fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Apr 30, 2024
1 parent 709199d commit 5e0940c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/controllers/v1/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { SlackConnector } from '../../../src/services/slack';
import { APIGatewayEvent, APIGatewayProxyResult } from 'aws-lambda';
import { JobRepository } from '../../../src/repositories/jobRepository';
import {
buildEntitledBranchList,
buildEntitledGroupsList,
getQSString,
isRestrictedToDeploy,
isUserEntitled,
Expand Down Expand Up @@ -48,7 +48,7 @@ export const DisplayRepoOptions = async (event: APIGatewayEvent): Promise<APIGat

const isAdmin = await repoEntitlementRepository.getIsAdmin(key_val['user_id']);

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

0 comments on commit 5e0940c

Please sign in to comment.