Correct account lookup bug
All checks were successful
Build and Publish / Build and Test (push) Successful in 7m41s
All checks were successful
Build and Publish / Build and Test (push) Successful in 7m41s
This commit is contained in:
parent
d11e4fd0c4
commit
df3b84079c
@ -47,8 +47,7 @@ pub async fn monzo_batched_json(
|
|||||||
.collect::<Result<_, _>>()?;
|
.collect::<Result<_, _>>()?;
|
||||||
|
|
||||||
// We default to the main account for JSON ingestion for now.
|
// 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, data.account_id().unwrap_or(1) as i32).await?;
|
||||||
db::insert(&db, rows, account_id).await?;
|
|
||||||
|
|
||||||
Ok("Ok")
|
Ok("Ok")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user