fix: use subscription client reconnect method

This commit is contained in:
Alexis Tyler
2021-06-04 14:13:28 +09:30
parent fa54c5da52
commit 5d764d8056
3 changed files with 18 additions and 17 deletions

View File

@@ -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;