Skip to content

Commit 0816eb8

Browse files
committed
sync unsynced accounts too
1 parent 2de0be9 commit 0816eb8

2 files changed

+3
-3
lines changed

.sqlx/query-99f7d81310d200e13e81f4262645b2eaa35d2f6140218a6142641f95c335cdaa.json .sqlx/query-c26330381e58e68e7c701fc09875e8152a27cb5dfb3eb1aaaa546cf0e9125e57.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)