Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions api/bundles/bundles.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,7 @@ async def update_bundle(

if bundle.is_dev:
logger.debug(f"Updating dev bundle {bundle.name}")
if patch.active_user is not None:
# remove user from previously assigned bundles
# to avoid constraint violation
if "active_user" in patch.dict(exclude_unset=True, by_alias=False):
await Postgres.execute(
"UPDATE bundles SET active_user = NULL WHERE active_user = $1",
patch.active_user,
Expand Down