mirror of
https://github.com/unraid/api.git
synced 2026-01-01 22:20:05 -06:00
fix: create connect key
This commit is contained in:
@@ -271,7 +271,7 @@ export class ApiKeyService implements OnModuleInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async createLocalConnectApiKey(): Promise<ApiKeyWithSecret> {
|
public async createLocalConnectApiKey(): Promise<ApiKeyWithSecret> {
|
||||||
return await this.create('Connect', 'API key for Connect user', [Role.ADMIN], true);
|
return await this.create('Connect', 'API key for Connect user', [Role.CONNECT], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async saveApiKey(apiKey: ApiKeyWithSecret): Promise<void> {
|
public async saveApiKey(apiKey: ApiKeyWithSecret): Promise<void> {
|
||||||
|
|||||||
Reference in New Issue
Block a user