Skip to content

Commit 7ff432f

Browse files
committed
sync unsynced accounts too
1 parent 2de0be9 commit 7ff432f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ impl Store {
214214
let results = sqlx::query_as!(
215215
Account,
216216
"select * from accounts
217-
where (last_success_at is not null and failure_count < 10 and last_success_at < datetime('now', '-1 days'))
217+
where (last_success_at is null or last_success_at < datetime('now', '-1 days'))
218218
and failure_count < 10
219219
limit 10"
220220
)

0 commit comments

Comments
 (0)