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()))?;