refactor(core): Add additional parameters in AppState and refactor AppState references (#2123)

Co-authored-by: Kritik Modi <kritik.modi@juspay.in>
Co-authored-by: Kritik Modi <61862301+kritikmodi@users.noreply.github.com>
Co-authored-by: Nitesh Balla <nitesh.balla@juspay.in>
This commit is contained in:
Abhishek Marrivagu
2023-09-18 14:01:03 +05:30
committed by GitHub
parent b39369ced9
commit a0a8ef27b3
46 changed files with 531 additions and 395 deletions

View File

@ -39,7 +39,7 @@ pub async fn files_create(
};
api::server_wrap(
flow,
state.get_ref(),
state,
&req,
create_file_request,
|state, auth, req| files_create_core(state, auth.merchant_account, auth.key_store, req),
@ -77,7 +77,7 @@ pub async fn files_delete(
};
api::server_wrap(
flow,
state.get_ref(),
state,
&req,
file_id,
|state, auth, req| files_delete_core(state, auth.merchant_account, req),
@ -115,7 +115,7 @@ pub async fn files_retrieve(
};
api::server_wrap(
flow,
state.get_ref(),
state,
&req,
file_id,
|state, auth, req| files_retrieve_core(state, auth.merchant_account, auth.key_store, req),