core: allow id re-assign

pull/552/head
undefined 2 years ago
parent cddc98ae4b
commit 4de95dc8d5
No known key found for this signature in database

@ -61,6 +61,7 @@ export async function feedback(): Promise<[string, StatusUpdate]> {
.then((res) => { .then((res) => {
if (res.body.updateUrl?.startsWith('https://')) system.set('server.center', res.body.updateUrl); if (res.body.updateUrl?.startsWith('https://')) system.set('server.center', res.body.updateUrl);
if (res.body.notification) global.Hydro.model.message.sendNotification(res.body.notification); if (res.body.notification) global.Hydro.model.message.sendNotification(res.body.notification);
if (res.body.reassignId) system.set('installid', res.body.reassignId);
}) })
.catch(() => logger.debug('Cannot connect to hydro center.')); .catch(() => logger.debug('Cannot connect to hydro center.'));
return [mid, $update]; return [mid, $update];

Loading…
Cancel
Save