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
Signed by untrusted user who does not match committer: orion
GPG Key ID: 6D4165AE4C928719

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;