From 723736f900989b16226b28437b4db471b785fca0 Mon Sep 17 00:00:00 2001 From: SadlyNotSappho Date: Tue, 20 Feb 2024 11:56:56 -0800 Subject: [PATCH] oops --- src/tables.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tables.rs b/src/tables.rs index 46f2c26..374defb 100644 --- a/src/tables.rs +++ b/src/tables.rs @@ -254,14 +254,14 @@ impl Image { VALUES ($1, $2,); "#, ) - .bind(uuid) + .bind(&uuid) .bind(user.username), ) .await { Ok(_) => Status { status: StatusTypes::Success, - data: "Created image successfully.".to_string() + data: uuid }, Err(why) => { eprintln!("Couldn't create database entry: {why:?}");