Skip to content

Commit

Permalink
feat(deps): update dependency liwi-mongo to v9 (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] committed Jan 31, 2023
1 parent 3b460da commit d4bd189
Show file tree
Hide file tree
Showing 121 changed files with 1,074 additions and 159 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/bl-npm-2.2.1-f294e1ea12-4f5d9b2589.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/ip-npm-1.1.5-af36318aa6-30133981f0.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -103,7 +103,7 @@
"emoji-regex": "10.2.1",
"issue-parser": "6.0.0",
"jsonwebtoken": "9.0.0",
"liwi-mongo": "8.3.1",
"liwi-mongo": "10.1.3",
"lock": "1.1.0",
"probot": "12.3.0",
"react": "18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/context/repoContext.ts
Expand Up @@ -226,7 +226,7 @@ async function initRepoContext<
$set: {
settings,
},
// remove legacy options settings
// @ts-expect-error -- remove legacy options settings
$unset: { options: '' },
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/context/slack/initTeamSlack.ts
Expand Up @@ -19,7 +19,7 @@ async function getSlackAccountFromAccount(
): Promise<string | undefined> {
// This is first for legacy org using their own slackToken and slack app. Keep using them.
if ('slackToken' in account) return account.slackToken;
if ('slackTeamId' in account) {
if ('slackTeamId' in account && account.slackTeamId != null) {
const slackTeam = await mongoStores.slackTeams.findByKey(
account.slackTeamId,
);
Expand Down
2 changes: 1 addition & 1 deletion src/events/pr-handlers/commentCreated.ts
Expand Up @@ -153,7 +153,7 @@ export default function prCommentCreated(
'account.type': repoContext.accountEmbed.type,
type: 'review-submitted',
typeId: (comment as any).pull_request_review_id,
})
} as const)
: null,
]);

Expand Down
2 changes: 1 addition & 1 deletion src/events/pr-handlers/reviewRequestRemoved.ts
Expand Up @@ -192,7 +192,7 @@ export default function reviewRequestRemoved(
typeId: `${pullRequest.id}_${
requestedTeam ? `${requestedTeam.id}_` : ''
}${potentialReviewer.id}`,
});
} as const);

if (sentMessageRequestedReview) {
const sentTo = sentMessageRequestedReview.sentTo[0];
Expand Down
4 changes: 2 additions & 2 deletions src/events/pr-handlers/reviewSubmitted.ts
Expand Up @@ -208,7 +208,7 @@ export default function reviewSubmitted(
'account.type': repoContext.accountEmbed.type,
type: 'review-requested',
typeId: `${pullRequest.id}_${reviewer.id}`,
},
} as const,
{ created: -1 },
),
reviewerGithubTeams.length > 0
Expand All @@ -220,7 +220,7 @@ export default function reviewSubmitted(
typeId: {
$regex: `^${pullRequest.id}_${createTeamsRegex()}_`,
},
},
} as const,
{ created: -1 },
)
: [],
Expand Down

0 comments on commit d4bd189

Please sign in to comment.