chore(deps): upgrade all dependencies, toolchains and images (#2825)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-17 21:08:56 +02:00
1 parent 56e04e7b53
commit 3b552e00ef
510 files changed
+23614 -37473

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ export class BotAuthService {
}
const {applicationId, secret} = parsed;
const application = await this.applicationRepository.getApplication(applicationId);
if (!application || !application.hasBotUser() || !application.botTokenHash) {
if (!application?.hasBotUser() || !application.botTokenHash) {
return null;
}
try {
@@ -246,7 +246,7 @@ export class OAuth2RequestService {
try {
const applicationId = createApplicationID(BigInt(params.body.client_id));
const application = await this.applicationRepository.getApplication(applicationId);
if (!application || !application.botUserId) {
if (!application?.botUserId) {
throw new NotABotApplicationError();
}
const botUserId = application.botUserId;
@@ -454,7 +454,7 @@ export class OAuth2RequestService {
createApplicationID(params.applicationId),
);
const application = await this.applicationRepository.getApplication(createApplicationID(params.applicationId));
if (!application || !application.botUserId) {
if (!application?.botUserId) {
throw new BotUserNotFoundError();
}
const botUser = await this.apiContext.services.users.findUnique(application.botUserId);
+1 -1
View File
@@ -333,7 +333,7 @@ export class OAuth2Service {
async userInfo(accessToken: string) {
const token = await this.tokens.getAccessToken(accessToken);
if (!token || !token.userId) {
if (!token?.userId) {
throw new InvalidTokenError();
}
const application = await this.applications.getApplication(token.applicationId);