Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2 from rame0/rame0-patch-1
Browse files Browse the repository at this point in the history
fix: changed data select period
  • Loading branch information
rame0 authored Aug 21, 2023
2 parents 6a86f03 + d467611 commit 55484c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ app.get('/api/get-prices', (req, res) => {
price_max,
price_avg
FROM prices
WHERE created_at > (SELECT DATETIME('now', '-7 day'))
WHERE created_at > (SELECT DATETIME('now', '-2 day'))
AND pair = '${req.query.pair}'
AND direction = '${req.query.direction}'
`, (error, rows) => {
Expand Down

0 comments on commit 55484c7

Please sign in to comment.