Skip to content

Commit

Permalink
DOP-4414 entitlements repos
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Mar 19, 2024
1 parent bce69c3 commit c86c466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repositories/repoEntitlementsRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class RepoEntitlementsRepository extends BaseRepository {
`Mongo Timeout Error: Timedout while retrieving entitlements for ${slackUserId}`
);
// if user has specific entitlements
if ((entitlementsObject?.repos?.length ?? 0) > 0) {
if (entitlementsObject?.repos && entitlementsObject.repos.length > 0) {
return {
repos: entitlementsObject.repos,
github_username: entitlementsObject.github_username,
Expand Down

0 comments on commit c86c466

Please sign in to comment.