A decentralized music tracking and discovery platform built on AT Protocol 🎵

Order scrobbles by xata_createdat

+1 -1
+1 -1
crates/jetstream/src/repo.rs
··· 101 102 let scrobbles: Vec<Scrobble> = sqlx::query_as::<_, Scrobble>( 103 r#" 104 - SELECT * FROM scrobbles WHERE user_id = $1 ORDER BY created_at DESC LIMIT 5 105 "#, 106 ) 107 .bind(&user_id)
··· 101 102 let scrobbles: Vec<Scrobble> = sqlx::query_as::<_, Scrobble>( 103 r#" 104 + SELECT * FROM scrobbles WHERE user_id = $1 ORDER BY xata_createdat DESC LIMIT 5 105 "#, 106 ) 107 .bind(&user_id)