Skip to content

Commit

Permalink
fix default
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Nov 21, 2024
1 parent fbe9906 commit 14145ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion migrations/0002_list-count.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
-- Add migration script here
alter table accounts add column list_count integer not null;
alter table accounts add column list_count integer not null default -1;
4 changes: 3 additions & 1 deletion src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@ pub async fn run_once(host: &str, token: &str) -> Result<RunStats, Error> {
manager.sync_list(&api_client, &mut api_cache).await?;
}

Ok(RunStats { list_count: list_managers.len() })
Ok(RunStats {
list_count: list_managers.len(),
})
}
1 change: 0 additions & 1 deletion src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ impl Store {
list_count,
account.host,
account.username,

)
.execute(&self.pool)
.await?;
Expand Down

0 comments on commit 14145ea

Please sign in to comment.