From d8de29d080745f30fa1470a74965f6a6911400ab Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Sun, 11 Jan 2026 18:27:26 +0300 Subject: [PATCH] Order scrobbles by xata_createdat --- crates/jetstream/src/repo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/jetstream/src/repo.rs b/crates/jetstream/src/repo.rs index f59ae5f8..bd67c183 100644 --- a/crates/jetstream/src/repo.rs +++ b/crates/jetstream/src/repo.rs @@ -101,7 +101,7 @@ pub async fn save_scrobble( let scrobbles: Vec = sqlx::query_as::<_, Scrobble>( r#" - SELECT * FROM scrobbles WHERE user_id = $1 ORDER BY created_at DESC LIMIT 5 + SELECT * FROM scrobbles WHERE user_id = $1 ORDER BY xata_createdat DESC LIMIT 5 "#, ) .bind(&user_id) -- 2.51.2