From 7ff432f55a8e89062ec4fe7fca6ec5765200ab58 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Thu, 21 Nov 2024 18:48:57 +0100 Subject: [PATCH] sync unsynced accounts too --- src/store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store.rs b/src/store.rs index f6475c7..030a58c 100644 --- a/src/store.rs +++ b/src/store.rs @@ -214,7 +214,7 @@ impl Store { let results = sqlx::query_as!( Account, "select * from accounts - where (last_success_at is not null and failure_count < 10 and last_success_at < datetime('now', '-1 days')) + where (last_success_at is null or last_success_at < datetime('now', '-1 days')) and failure_count < 10 limit 10" )