about summary refs log tree commit diff
path: root/src/state/queries/index.ts
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-12-18 10:58:26 -0800
committerGitHub <noreply@github.com>2024-12-18 10:58:26 -0800
commit5c4f870898a7f41c2b7cb554c1b585309ec3d3c9 (patch)
tree40569b1cea14d8636888d4e1f382d4425a2c1b9c /src/state/queries/index.ts
parent3481d165770cd09422133b4b704483be43bb8cba (diff)
downloadvoidsky-5c4f870898a7f41c2b7cb554c1b585309ec3d3c9.tar.zst
change stale time to three minutes (#7158)
Diffstat (limited to 'src/state/queries/index.ts')
-rw-r--r--src/state/queries/index.ts17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/state/queries/index.ts b/src/state/queries/index.ts
index d4b9d94c4..cdc47bf99 100644
--- a/src/state/queries/index.ts
+++ b/src/state/queries/index.ts
@@ -1,15 +1,20 @@
+const SECOND = 1e3
+const MINUTE = SECOND * 60
+const HOUR = MINUTE * 60
+
 export const STALE = {
   SECONDS: {
-    FIFTEEN: 1e3 * 15,
-    THIRTY: 1e3 * 30,
+    FIFTEEN: 15 * SECOND,
+    THIRTY: 30 * SECOND,
   },
   MINUTES: {
-    ONE: 1e3 * 60,
-    FIVE: 1e3 * 60 * 5,
-    THIRTY: 1e3 * 60 * 30,
+    ONE: MINUTE,
+    THREE: 3 * MINUTE,
+    FIVE: 5 * MINUTE,
+    THIRTY: 30 * MINUTE,
   },
   HOURS: {
-    ONE: 1e3 * 60 * 60,
+    ONE: HOUR,
   },
   INFINITY: Infinity,
 }