Skip to content

Commit

Permalink
Merge pull request #225 from DestinyItemManager/stale-reads
Browse files Browse the repository at this point in the history
Allow stale reads of global settings
  • Loading branch information
bhollis authored Sep 5, 2024
2 parents 58874d3 + db103f2 commit a80f392
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/routes/platform-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a80f392

Please sign in to comment.