From 74364c4e170cf8a6129fd3df1ea59da164d50fdd Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Fri, 20 Oct 2023 01:47:24 +0530 Subject: [PATCH] chore: lint --- src/api/v1/mcaptcha/create.rs | 5 +++-- src/api/v1/survey.rs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/api/v1/mcaptcha/create.rs b/src/api/v1/mcaptcha/create.rs index 6321f045..dd7c07cf 100644 --- a/src/api/v1/mcaptcha/create.rs +++ b/src/api/v1/mcaptcha/create.rs @@ -87,10 +87,11 @@ pub mod runner { .await?; if payload.publish_benchmarks { - data.db.analytics_create_psuedo_id_if_not_exists(&key).await?;; + data.db + .analytics_create_psuedo_id_if_not_exists(&key) + .await?; } - let mcaptcha_config = MCaptchaDetails { name: payload.description.clone(), key, diff --git a/src/api/v1/survey.rs b/src/api/v1/survey.rs index c751bd6a..45f1744a 100644 --- a/src/api/v1/survey.rs +++ b/src/api/v1/survey.rs @@ -35,7 +35,7 @@ pub mod routes { impl Survey { pub const fn new() -> Self { Self { - download: "/api/v1/survey/{survey_id}/get", + download: "/api/v1/survey/takeout/{survey_id}/get", secret: "/api/v1/survey/secret", } }