fix value decimal form

This commit is contained in:
Romulus21
2024-11-30 22:07:53 +01:00
parent 319e901dd8
commit ba67b0becd
5 changed files with 51 additions and 51 deletions

View File

@@ -88,4 +88,11 @@ impl Link {
}
}
}
#[cfg(feature = "ssr")]
pub async fn destroy(id: String) -> Result<sqlx::mysql::MySqlQueryResult, sqlx::Error> {
sqlx::query!("DELETE FROM links WHERE id = ? ", id,)
.execute(crate::database::get_db())
.await
}
}