mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
fixed missing group_id filter
This commit is contained in:
parent
4a13714177
commit
0abe8b1921
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ def find_user_id_for_group(group_id: UUID):
|
|||
except orm.exc.NoResultFound:
|
||||
# fallback to any user
|
||||
user_id = session.execute(
|
||||
sa.text("SELECT id FROM users LIMIT 1").bindparams(group_id=group_id)
|
||||
sa.text("SELECT id FROM users WHERE group_id=:group_id LIMIT 1").bindparams(group_id=group_id)
|
||||
).scalar_one()
|
||||
return user_id
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue