fix: do_grp_add_admins
Some checks failed
gen-migrations / gen-migrations (push) Failing after 12s

This commit is contained in:
Orion Kindel
2023-07-20 15:47:00 -05:00
parent fe4288ddc4
commit d26aa997f3

View File

@@ -21,7 +21,7 @@ create function public.grp_add_members(to_grp int, add_usrs int[])
as $$
begin
insert into public.grp_usr (grp, usr)
select grp, usr_id
select to_grp, usr_id
from unnest(add_usrs) usr_id
left join public.grp_usr gu on gu.usr = usr_id and gu.grp = to_grp
where gu is null;