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 0816eb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 0816eb8

Please sign in to comment.