Added recategorization from UI
This commit is contained in:
parent
128cd85a9b
commit
1ad1e66470
4 changed files with 25 additions and 12 deletions
|
|
@ -61,10 +61,7 @@ pub async fn recategorize(
|
|||
return (StatusCode::UNAUTHORIZED, String::new());
|
||||
}
|
||||
|
||||
match account
|
||||
.recategorize_transactions(db.as_ref(), None, None)
|
||||
.await
|
||||
{
|
||||
match account.recategorize_transactions(db.as_ref()).await {
|
||||
Ok(_) => (StatusCode::OK, String::new()),
|
||||
Err(e) => (StatusCode::INTERNAL_SERVER_ERROR, format!("{e}")),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue