fix(beatmap): refresh current user data in lookup_beatmap function

This commit is contained in:
MingxuanGame
2025-10-04 08:43:48 +00:00
parent 806dd819fb
commit 6c23694061

View File

@@ -61,6 +61,7 @@ async def lookup_beatmap(
if beatmap is None:
raise HTTPException(status_code=404, detail="Beatmap not found")
await db.refresh(current_user)
return await BeatmapResp.from_db(beatmap, session=db, user=current_user)