From 1e3e53aa6d9639d1f5a8dd2fe6fe58454e0e577a Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Tue, 19 Nov 2024 20:41:53 -0800 Subject: [PATCH] refactor: rename new.sql to new_record.sql --- queries/records/{new.sql => new_record.sql} | 0 src/router/upload.rs | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename queries/records/{new.sql => new_record.sql} (100%) diff --git a/queries/records/new.sql b/queries/records/new_record.sql similarity index 100% rename from queries/records/new.sql rename to queries/records/new_record.sql diff --git a/src/router/upload.rs b/src/router/upload.rs index 479673e..8a4b020 100644 --- a/src/router/upload.rs +++ b/src/router/upload.rs @@ -86,7 +86,7 @@ async fn upload_to_zip( let mut conn = state.pool.acquire().await.unwrap(); let cache_name = cache_name.clone(); - sqlx::query_file!("queries/records/new.sql", cache_name, 5) + sqlx::query_file!("queries/records/new_record.sql", cache_name, 5) .execute(&mut *conn) .await .map_err(|err| (StatusCode::INTERNAL_SERVER_ERROR, err.to_string()))?;