We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83db4c2 commit 5c61fc2Copy full SHA for 5c61fc2
src/mappings/dbFunctions/rewards.ts
@@ -1,7 +1,8 @@
1
export function getRewardsByDate(dbSchema: string): string {
2
return `CREATE OR REPLACE FUNCTION ${dbSchema}.get_rewards_by_date(
3
start_date TIMESTAMP,
4
- end_date TIMESTAMP
+ end_date TIMESTAMP,
5
+ trunc_interval TEXT -- 'day' or 'hour'
6
)
7
RETURNS JSON AS $$
8
BEGIN
0 commit comments