mirror of
https://github.com/immich-app/immich.git
synced 2025-12-19 17:23:21 +03:00
refactor: test utils (#16588)
This commit is contained in:
@@ -307,7 +307,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);
|
||||
const apiKey = await this.apiKeyRepository.getKey(hashedKey);
|
||||
if (apiKey?.user) {
|
||||
return {
|
||||
user: apiKey.user,
|
||||
|
||||
Reference in New Issue
Block a user