Skip to content

Commit

Permalink
sync unsynced accounts too
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Nov 21, 2024
1 parent 2de0be9 commit 7ff432f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 7ff432f

Please sign in to comment.