fix(playlist): cannot close playlist manually
This commit is contained in:
@@ -161,7 +161,8 @@ async def delete_room(room: int, db: AsyncSession = Depends(get_db)):
|
|||||||
if db_room is None:
|
if db_room is None:
|
||||||
raise HTTPException(404, "Room not found")
|
raise HTTPException(404, "Room not found")
|
||||||
else:
|
else:
|
||||||
await db.delete(db_room)
|
db_room.ends_at = datetime.now(UTC)
|
||||||
|
await db.commit()
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user