Skip to content

Commit

Permalink
syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pAkalpa committed Sep 25, 2023
1 parent 54ae357 commit e36e498
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions selfhosting/setup-dump.sql
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,9 @@ BEGIN
run.created_at >= NOW() - INTERVAL '1 day' * days AND
(user_id IS NULL OR run.user = user_id) AND
(run.type != 'agent' OR run.parent_run IS NULL)
GROUP BY
run.name, run.type;
GROUP BY
run.name, run.type;
END; $function$


CREATE OR REPLACE FUNCTION public.get_runs_usage_daily(app_id uuid, days integer, user_id integer DEFAULT NULL)
Expand Down

0 comments on commit e36e498

Please sign in to comment.