修复当前播放的音乐记录置底

This commit is contained in:
mtvpls
2026-05-15 09:31:08 +08:00
parent ac765eff78
commit cef7f73ce0
5 changed files with 15 additions and 9 deletions
+1 -1
View File
@@ -1404,7 +1404,7 @@ export class PostgresStorage implements IStorage {
try {
const results = await this.db
// 按队列顺序返回;当前播放项由最大 last_played_at 决定
.prepare('SELECT * FROM music_v2_history WHERE username = $1 ORDER BY created_at ASC, last_played_at ASC')
.prepare('SELECT * FROM music_v2_history WHERE username = $1 ORDER BY created_at ASC, id ASC')
.bind(userName)
.all();