refactor: test utils (#16588)

This commit is contained in:
Jason Rasmussen 2025-03-04 11:15:41 -05:00 committed by GitHub
parent 1423cfd53c
commit 63c01b78e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 245 additions and 216 deletions

View file

@ -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,