mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
chore(deps): upgrade all dependencies, toolchains and images (#2825)
This commit is contained in:
1 parent
56e04e7b53
commit
3b552e00ef
510 files changed
+23614
-37473
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user