Skip to content

Commit

Permalink
fix timestamp changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jedna committed Nov 21, 2024
1 parent 1a8c0f0 commit 26b8669
Showing 1 changed file with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use super::{Create, Execute, RequestExecuteStage};
use crate::models::{MonitorExternalCanisterOperation, MonitorExternalCanisterOperationKind};
use crate::{
errors::{RequestError, RequestExecuteError},
models::{Request, RequestExecutionPlan, RequestOperation},
models::{Request, RequestOperation},
services::ExternalCanisterService,
};
use async_trait::async_trait;
Expand All @@ -22,19 +22,12 @@ impl Create<station_api::MonitorExternalCanisterOperationInput>
input: station_api::CreateRequestInput,
operation_input: station_api::MonitorExternalCanisterOperationInput,
) -> Result<Request, RequestError> {
let request = Request::new(
let request = Request::from_request_creation_input(
request_id,
requested_by_user,
Request::default_expiration_dt_ns(),
input,
RequestOperation::MonitorExternalCanister(operation_input.into()),
input
.execution_plan
.map(Into::into)
.unwrap_or(RequestExecutionPlan::Immediate),
input
.title
.unwrap_or_else(|| "Monitor canister".to_string()),
input.summary,
"Monitor canister".to_string(),
);

Ok(request)
Expand Down

0 comments on commit 26b8669

Please sign in to comment.