Skip to content

Commit 5c61fc2

Browse files
committed
fixed get_rewards_by_date db function
1 parent 83db4c2 commit 5c61fc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mappings/dbFunctions/rewards.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
export function getRewardsByDate(dbSchema: string): string {
22
return `CREATE OR REPLACE FUNCTION ${dbSchema}.get_rewards_by_date(
33
start_date TIMESTAMP,
4-
end_date TIMESTAMP
4+
end_date TIMESTAMP,
5+
trunc_interval TEXT -- 'day' or 'hour'
56
)
67
RETURNS JSON AS $$
78
BEGIN

0 commit comments

Comments
 (0)