summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/FederatedInstanceService.ts
diff options
context:
space:
mode:
authorGianni Ceccarelli <dakkar@thenautilus.net>2024-07-13 12:26:48 +0100
committerGitHub <noreply@github.com>2024-07-13 20:26:48 +0900
commitc83c831c53ab2367e2323737ee0f2ae89ab2de6d (patch)
tree3094425e00e4c7d575aa51eec94253d4fad3f200 /packages/backend/src/core/FederatedInstanceService.ts
parentrefactor(sw): enable noImplicitAny (#14191) (diff)
downloadsharkey-c83c831c53ab2367e2323737ee0f2ae89ab2de6d.tar.gz
sharkey-c83c831c53ab2367e2323737ee0f2ae89ab2de6d.tar.bz2
sharkey-c83c831c53ab2367e2323737ee0f2ae89ab2de6d.zip
parse `notRespondingSince` from redis instance cache (#14079)
if we don't do this, we'll get a string, and `DeliverProcessorService` will error out `i.notRespondingSince.getTime is not a function`
Diffstat (limited to 'packages/backend/src/core/FederatedInstanceService.ts')
-rw-r--r--packages/backend/src/core/FederatedInstanceService.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/backend/src/core/FederatedInstanceService.ts b/packages/backend/src/core/FederatedInstanceService.ts
index 6799f2c5bb..7aeeb78178 100644
--- a/packages/backend/src/core/FederatedInstanceService.ts
+++ b/packages/backend/src/core/FederatedInstanceService.ts
@@ -40,6 +40,7 @@ export class FederatedInstanceService implements OnApplicationShutdown {
firstRetrievedAt: new Date(parsed.firstRetrievedAt),
latestRequestReceivedAt: parsed.latestRequestReceivedAt ? new Date(parsed.latestRequestReceivedAt) : null,
infoUpdatedAt: parsed.infoUpdatedAt ? new Date(parsed.infoUpdatedAt) : null,
+ notRespondingSince: parsed.notRespondingSince ? new Date(parsed.notRespondingSince) : null,
};
},
});