Skip to content

Commit

Permalink
use StrictCollectionPath for uploading collection snapshot (#3991)
Browse files Browse the repository at this point in the history
  • Loading branch information
generall committed Apr 9, 2024
1 parent 28dee38 commit 15479a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actix/api/snapshot_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use storage::rbac::{Access, AccessRequirements};
use uuid::Uuid;
use validator::Validate;

use super::CollectionPath;
use super::{CollectionPath, StrictCollectionPath};
use crate::actix::auth::ActixAccess;
use crate::actix::helpers::{self, process_response, HttpError};
use crate::common;
Expand Down Expand Up @@ -161,7 +161,7 @@ async fn create_snapshot(
async fn upload_snapshot(
dispatcher: web::Data<Dispatcher>,
http_client: web::Data<HttpClient>,
collection: valid::Path<CollectionPath>,
collection: valid::Path<StrictCollectionPath>,
MultipartForm(form): MultipartForm<SnapshottingForm>,
params: valid::Query<SnapshotUploadingParam>,
ActixAccess(access): ActixAccess,
Expand Down

0 comments on commit 15479a4

Please sign in to comment.