diff --git a/server/src/updater.rs b/server/src/updater.rs index 2756d5c..1a03c93 100644 --- a/server/src/updater.rs +++ b/server/src/updater.rs @@ -37,7 +37,7 @@ pub fn spawn(state: Arc>) -> JoinHandle<()> { async fn inner(state: &RwLock, lodestone: &LodestoneScraper) -> Result>> { let users = sqlx::query!( // language=sqlite - "select * from users where (julianday(current_timestamp) - julianday(last_updated)) * 24 >= 2", + "select * from users where (julianday(current_timestamp) - julianday(last_updated)) * 24 >= 2 order by last_updated", ) .fetch_all(&state.read().await.db) .await