From bb141818f514f9b7d2a8e4f60cf6b3773b8e3855 Mon Sep 17 00:00:00 2001 From: Lennart Kloock Date: Wed, 17 Jan 2024 12:15:41 +0100 Subject: [PATCH] fix(platform): sql queries --- platform/api/src/config.rs | 2 +- platform/api/src/database/file_type.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/api/src/config.rs b/platform/api/src/config.rs index 6accc1b8..c470e3b7 100644 --- a/platform/api/src/config.rs +++ b/platform/api/src/config.rs @@ -74,7 +74,7 @@ pub struct ImageUploaderConfig { pub profile_picture_callback_subject: String, /// Profile picture task priority, higher number means higher priority - pub profile_picture_task_priority: i32, + pub profile_picture_task_priority: i64, /// Public endpoint for downloads pub public_endpoint: String, diff --git a/platform/api/src/database/file_type.rs b/platform/api/src/database/file_type.rs index 2332dea9..36e3dfb6 100644 --- a/platform/api/src/database/file_type.rs +++ b/platform/api/src/database/file_type.rs @@ -1,6 +1,7 @@ use postgres_types::{FromSql, ToSql}; #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, ToSql, FromSql)] +#[postgres(name = "filetype")] pub enum FileType { #[postgres(name = "custom_thumbnail")] CustomThumbnail,