Skip to content

Commit

Permalink
Fix table columns name
Browse files Browse the repository at this point in the history
  • Loading branch information
deniszagumennov committed Dec 9, 2024
1 parent 75aafe5 commit e5307da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crawler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,13 @@ program
protocol_id, asset_id, multiplier, enabled
FROM schedule s
WHERE
((s.start_time = 0 AND s.end_time = 0) OR (s.start < $1 AND s.end > $2))
((s.start_time = 0 AND s.end_time = 0) OR (s.start_time < $1 AND s.end_time > $2))
ORDER BY protocol_id, schedule_id DESC
) AS subquery
WHERE enabled = true
GROUP BY protocol_id, asset_id, multiplier, enabled
`,
[ts, ts]
);
if (!protocolsInDb.length) {
logger.info('No protocols found in the schedule');
Expand Down

0 comments on commit e5307da

Please sign in to comment.