Skip to content

Commit

Permalink
fix: ci sysc remove fill ctx (#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
RWDai authored Aug 12, 2024
1 parent 0f466e4 commit 75f83ec
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,8 @@ impl IamCiCertApi {
///
/// 定时任务触发第三方集成同步
#[oai(path = "/sync", method = "get")]
async fn third_integration_sync(&self, mut ctx: TardisContextExtractor, request: &Request) -> TardisApiResult<String> {
async fn third_integration_sync(&self, ctx: TardisContextExtractor, request: &Request) -> TardisApiResult<String> {
let funs = iam_constants::get_tardis_inst();
check_without_owner_and_unsafe_fill_ctx(request, &funs, &mut ctx.0)?;
try_set_real_ip_from_req_to_ctx(request, &ctx.0).await?;
let msg = IamCertServ::third_integration_sync_without_config(&funs, &ctx.0).await?;
ctx.0.execute_task().await?;
Expand Down

0 comments on commit 75f83ec

Please sign in to comment.