Skip to content

Commit 2cacfa1

Browse files
committed
reduce amount of devData for the lttstore watcher
1 parent cc1075b commit 2cacfa1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/routes/api/lttstore/devData/+server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const GET = (async ({platform}) => {
1818
.then(r => r.results);
1919

2020
const collectionChanges = db.prepare("select * from collection_changes where field is not \"updated_at\" or timestamp > ?")
21-
.bind(Date.now() - (2 * 24 * 60 * 60e3)) // only get update_at entries from the past 2 days
21+
.bind(Date.now() - (24 * 60 * 60e3)) // only get updated_at entries from the past 24h
2222
.all()
2323
.then(r => r.results);
2424

@@ -28,7 +28,7 @@ export const GET = (async ({platform}) => {
2828

2929
// const waterBottleChanges = db.prepare("select * from change_history where id = 7117650296935")
3030
const changeHistory = db.prepare("select * from change_history where id = 6649895092327 or timestamp > ?")
31-
.bind(Date.now() - (30 * 24 * 60 * 60e3)) // only get non-screwdriver changes from the past 30 days
31+
.bind(Date.now() - (14 * 24 * 60 * 60e3)) // only get non-screwdriver changes from the past 14 days
3232
.all()
3333
.then(r => r.results);
3434

0 commit comments

Comments
 (0)