fix(playlist): cannot close playlist manually

This commit is contained in:
MingxuanGame
2025-08-09 05:52:38 +00:00
parent 319599cacc
commit e4d883bf81

View File

@@ -161,7 +161,8 @@ async def delete_room(room: int, db: AsyncSession = Depends(get_db)):
if db_room is None:
raise HTTPException(404, "Room not found")
else:
await db.delete(db_room)
db_room.ends_at = datetime.now(UTC)
await db.commit()
return None