diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-02-13 15:28:07 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-02-13 15:28:07 +0900 |
| commit | f34f9f6ea583a5455600eea9dbf5ffdf38802d21 (patch) | |
| tree | 01125e156f4011c949462b926853777660254706 /packages/backend/src/server/api/AuthenticateService.ts | |
| parent | refactor: fix types (diff) | |
| download | sharkey-f34f9f6ea583a5455600eea9dbf5ffdf38802d21.tar.gz sharkey-f34f9f6ea583a5455600eea9dbf5ffdf38802d21.tar.bz2 sharkey-f34f9f6ea583a5455600eea9dbf5ffdf38802d21.zip | |
refactor: fix types
Diffstat (limited to 'packages/backend/src/server/api/AuthenticateService.ts')
| -rw-r--r-- | packages/backend/src/server/api/AuthenticateService.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/server/api/AuthenticateService.ts b/packages/backend/src/server/api/AuthenticateService.ts index 8b39f6c924..b9f6af4ffe 100644 --- a/packages/backend/src/server/api/AuthenticateService.ts +++ b/packages/backend/src/server/api/AuthenticateService.ts @@ -1,7 +1,7 @@ import { Inject, Injectable } from '@nestjs/common'; import { DI } from '@/di-symbols.js'; import type { AccessTokensRepository, AppsRepository, UsersRepository } from '@/models/index.js'; -import type { CacheableLocalUser, ILocalUser } from '@/models/entities/User.js'; +import type { ILocalUser } from '@/models/entities/User.js'; import type { AccessToken } from '@/models/entities/AccessToken.js'; import { Cache } from '@/misc/cache.js'; import type { App } from '@/models/entities/App.js'; @@ -36,7 +36,7 @@ export class AuthenticateService { } @bindThis - public async authenticate(token: string | null | undefined): Promise<[CacheableLocalUser | null | undefined, AccessToken | null | undefined]> { + public async authenticate(token: string | null | undefined): Promise<[ILocalUser | null | undefined, AccessToken | null | undefined]> { if (token == null) { return [null, null]; } |