fix: rating-history API - pass auth token, fix table/column names

- frontend: pass token to listRatingHistory API call
- backend: fix SQL table name redeem_logs -> redeem_records
- backend: fix SQL column name title -> task_code in daily_task_logs

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
这个提交包含在:
cryptocommuniums-afk
2026-02-16 12:22:22 +08:00
父节点 2117d1e298
当前提交 bc2e085c70
修改 3 个文件,包含 5 行新增5 行删除

查看文件

@@ -149,7 +149,7 @@ export default function MePage() {
apiFetch<RedeemItem[]>("/api/v1/me/redeem/items", {}, tk),
apiFetch<RedeemRecord[]>("/api/v1/me/redeem/records?limit=200", {}, tk),
apiFetch<DailyTaskPayload>("/api/v1/me/daily-tasks", {}, tk),
listRatingHistory(50),
listRatingHistory(50, tk),
]);
setProfile(me);
setItems(redeemItems ?? []);