fix value decimal form
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user