mirror of
https://github.com/immich-app/immich.git
synced 2025-12-19 17:23:21 +03:00
feat: migration api keys to use kysely (#15206)
This commit is contained in:
@@ -308,7 +308,7 @@ export class AuthService extends BaseService {
|
||||
private async validateApiKey(key: string): Promise<AuthDto> {
|
||||
const hashedKey = this.cryptoRepository.hashSha256(key);
|
||||
const apiKey = await this.keyRepository.getKey(hashedKey);
|
||||
if (apiKey?.user) {
|
||||
if (apiKey) {
|
||||
return { user: apiKey.user, apiKey };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user