fix: ensure directory exists before making connect key

This commit is contained in:
Eli Bosley
2025-01-13 15:56:17 -05:00
parent aa1ef1bd4c
commit a6cd74dc5c

View File

@@ -267,6 +267,7 @@ export class ApiKeyService implements OnModuleInit {
}
public async createLocalConnectApiKey(): Promise<ApiKeyWithSecret> {
await ensureDir(this.basePath);
return await this.create('Connect', 'API key for Connect user', [Role.CONNECT], true);
}