mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
fix: ensure directory exists before making connect key
This commit is contained in:
@@ -267,6 +267,7 @@ export class ApiKeyService implements OnModuleInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async createLocalConnectApiKey(): Promise<ApiKeyWithSecret> {
|
public async createLocalConnectApiKey(): Promise<ApiKeyWithSecret> {
|
||||||
|
await ensureDir(this.basePath);
|
||||||
return await this.create('Connect', 'API key for Connect user', [Role.CONNECT], true);
|
return await this.create('Connect', 'API key for Connect user', [Role.CONNECT], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user