mirror of
https://github.com/unraid/api.git
synced 2026-02-20 06:58:29 -06:00
fix: use subscription client reconnect method
This commit is contained in:
@@ -27,7 +27,11 @@ export const getOwner = async function (context: CoreContext): Promise<CoreResul
|
||||
|
||||
const apiKey = apiManager.getValidKeys().find(key => key.name === 'my_servers')?.key.toString()!;
|
||||
|
||||
log.debug('Found API key for my_servers "%s"', apiKey);
|
||||
if (apiKey) {
|
||||
log.debug('Found API key for my_servers "%s"', apiKey);
|
||||
} else {
|
||||
log.debug('Found no API key for my_servers');
|
||||
}
|
||||
|
||||
const server = apiKey ? await getServers().then(servers => servers.find(server => server.apikey === apiKey)) : null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user