mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor: test utils (#16588)
This commit is contained in:
parent
1423cfd53c
commit
63c01b78e2
8 changed files with 245 additions and 216 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue