Added account history in the ui.

This commit is contained in:
didier amyot committed 2023-04-10 17:21:44 -04:00
1 parent f4593df95b
commit 18e7b0df1c
5 files changed
+78 -10

No files matched your search

+2 -1
View File
@@ -45,7 +45,8 @@ pub async fn get_account(tmpl_env: MiniJinjaRenderer,
let user_id = auth_service.get_login(&req).unwrap();
let ctx = context!{
account => account_service.get_account_by_id(&account_id, &user_id).map_err(error::ErrorInternalServerError)?
account => account_service.get_account_by_id(&account_id, &user_id).map_err(error::ErrorInternalServerError)?,
account_history => account_service.get_account_history_by_id(&account_id, &user_id).map_err(error::ErrorInternalServerError)?
};
tmpl_env.render("account.html", ctx)
}