mirror of
https://github.com/unraid/api.git
synced 2026-01-14 12:39:53 -06:00
feat: add "ready" event to api-manager
This commit is contained in:
@@ -86,6 +86,9 @@ export class ApiManager extends EventEmitter {
|
||||
log.debug('Loading MyServers API key...');
|
||||
this.checkKey(configPath, true).then(() => {
|
||||
log.debug('Loaded MyServers API key!');
|
||||
|
||||
// API manager is ready
|
||||
this.emit('ready', undefined);
|
||||
}).catch(error => {
|
||||
log.debug('Failing loading MyServers API key with %s', error);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user