We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9965ff commit 0f49a7cCopy full SHA for 0f49a7c
1 file changed
src/routes/api/lttstore/devData/+server.ts
@@ -22,7 +22,8 @@ export const GET = (async ({platform}) => {
22
.all()
23
.then(r => r.results);
24
25
- const screwdriverStocks = db.prepare("select * from stock_history where id = 6649895092327")
+ const screwdriverStocks = db.prepare("select * from stock_history where id = 6649895092327 and timestamp > ?")
26
+ .bind(Date.now() - (365 * 24 * 60 * 60e3))
27
28
29
0 commit comments