Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Burtey committed Sep 4, 2023
1 parent 4c51c24 commit 5c8e532
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/app/bootstrap/price-cache.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { SECS_PER_10_MINS } from "@config"
import { LocalCacheService } from "@services/cache"

export const seedPriceCache = async () => {
console.log("seedPriceCache")

const value: DisplayCurrencyPrices = {
USD: {
timestamp: new Date(),
Expand All @@ -20,12 +17,12 @@ export const seedPriceCache = async () => {
await LocalCacheService().set<DisplayCurrencyPrices>({
key: "price:current:sat",
value,
ttlSecs: Number(SECS_PER_10_MINS * 6 * 24 * 365) as Seconds, // do not expire
ttlSecs: (60 * 60 * 24 * 365) as Seconds, // 1y
})

await LocalCacheService().set<DisplayCurrencyPrices>({
key: "price:current:usdcent",
value,
ttlSecs: Number(SECS_PER_10_MINS * 6 * 24 * 365) as Seconds, // do not expire
ttlSecs: (60 * 60 * 24 * 365) as Seconds, // 1y
})
}

0 comments on commit 5c8e532

Please sign in to comment.