From db103f25a1030a37a1af8e54d03a02c178346d0e Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Tue, 3 Sep 2024 18:51:02 -0700 Subject: [PATCH] Allow stale reads of global settings --- api/routes/platform-info.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/routes/platform-info.ts b/api/routes/platform-info.ts index 280f6f4..9692a56 100644 --- a/api/routes/platform-info.ts +++ b/api/routes/platform-info.ts @@ -11,7 +11,9 @@ export const platformInfoHandler = asyncHandler(async (req, res) => { let settings: GlobalSettings | undefined = undefined; try { // Try StatelyDB first, then fall back to Postgres - const statelySettings = await client.get('GlobalSettings', keyPath`/gs-${flavor}`); + const statelySettings = await client + .withAllowStale(true) + .get('GlobalSettings', keyPath`/gs-${flavor}`); if (statelySettings) { settings = { ...statelySettings,