From 84497da819e766af26536e44dc24c0f1b8e17d41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Mon, 27 Jul 2026 16:32:09 +0200 Subject: [PATCH] update rustpad --- src/auth/mod.rs | 3 +-- src/db.rs | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/auth/mod.rs b/src/auth/mod.rs index e82c350..1971ba9 100644 --- a/src/auth/mod.rs +++ b/src/auth/mod.rs @@ -20,7 +20,7 @@ use lettre::{ use rand_core::{OsRng, RngCore}; use serde::{Deserialize, Serialize}; use sha2::{Digest, Sha256}; -use sqlx::{any::AnyRow, FromRow, Row}; +use sqlx::{any::AnyRow, Row}; use tracing::{debug, info, warn}; use crate::{ @@ -109,7 +109,6 @@ pub struct ResourceItem { title: String, protected: i64, updated_at: String, - #[sqlx(rename = "private")] #[serde(rename = "private")] private_resource: i64, owned: i64, diff --git a/src/db.rs b/src/db.rs index 917f470..651a549 100644 --- a/src/db.rs +++ b/src/db.rs @@ -41,7 +41,6 @@ pub struct Workspace { pub struct Note { pub id: i64, #[serde(skip_serializing)] - #[sqlx(rename = "workspace_id")] pub _workspace_id: i64, pub slug: String, pub title: String,