Skip to content

Commit

Permalink
Update backend/endpoints/rom.py
Browse files Browse the repository at this point in the history
Co-authored-by: Zurdi <[email protected]>
  • Loading branch information
gantoine and zurdi15 authored Jan 10, 2025
1 parent a120f10 commit 3194609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/endpoints/rom.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ async def delete_roms(
@protected_route(router.put, "/roms/{id}/props", [Scope.ROMS_USER_WRITE])
async def update_rom_user(request: Request, id: int) -> RomUserSchema:
data = await request.json()
data = data["data"] or {}
data = data.get("data", {})

rom = db_rom_handler.get_rom(id)

Expand Down

0 comments on commit 3194609

Please sign in to comment.