Correct account lookup bug
All checks were successful
Build and Publish / Build and Test (push) Successful in 7m41s

This commit is contained in:
Joshua Coles 2025-12-28 12:48:47 +00:00
parent d11e4fd0c4
commit df3b84079c

View File

@ -47,8 +47,7 @@ pub async fn monzo_batched_json(
.collect::<Result<_, _>>()?;
// We default to the main account for JSON ingestion for now.
let account_id = db::get_account_id(&db, data.account_id().map(|id| id.to_string())).await?;
db::insert(&db, rows, account_id).await?;
db::insert(&db, rows, data.account_id().unwrap_or(1) as i32).await?;
Ok("Ok")
}