fix: unneeded await on api-key service

This commit is contained in:
Eli Bosley
2025-01-27 11:28:05 -05:00
parent 2ad612cef8
commit 923e929878

View File

@@ -125,7 +125,7 @@ export class ApiKeyService implements OnModuleInit {
throw new GraphQLError('Invalid role specified');
}
const existingKey = await this.findByField('name', sanitizedName);
const existingKey = this.findByField('name', sanitizedName);
if (!overwrite && existingKey) {
throw new GraphQLError('API key name already exists, use overwrite flag to update');
}