Skip to content

Commit

Permalink
Merge pull request #43 from sanctuarycomputer/revert-expiration-duration
Browse files Browse the repository at this point in the history
revert api data update cadence to 24 hours for side nav
  • Loading branch information
nahbee10 authored Dec 11, 2024
2 parents 4a87491 + efea472 commit c1ec5cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Copenhagen",
"author": "Sanctuary Computer",
"version": "4.2.21",
"version": "4.2.22",
"api_version": 4,
"default_locale": "en-us",
"settings": [
Expand Down
5 changes: 1 addition & 4 deletions src/modules/side-nav/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,7 @@ export const sideNav = {
const millisecondsIn24Hours = 24 * 60 * 60 * 1000;

SideNavDataManager.set({
// Set it like this for now since the client wants to QA the side nav with different items
expiresAt: Date.now() + 5000,
// TODO: uncomment the line below before launch
// expriresAt: Date.now() + millisecondsIn24Hours,
expiresAt: Date.now() + millisecondsIn24Hours,
data: sanitizedResponse,
});

Expand Down

0 comments on commit c1ec5cd

Please sign in to comment.