diff options
| author | WriterV2 <primary-v2@protonmail.com> | 2024-11-07 18:35:27 +0100 |
|---|---|---|
| committer | WriterV2 <primary-v2@protonmail.com> | 2024-11-07 18:35:27 +0100 |
| commit | 680867b4bb5e2708f02fc3f8c21c3563975c44c7 (patch) | |
| tree | 0e90e583f1696d3c7c66484a5f8dbd919c75245d /src/db/mod.rs | |
| parent | 99fc959383d5b7b26d8e80f6257adf8b98989f41 (diff) | |
Feat: Add admin API route to delete story by product id
Diffstat (limited to 'src/db/mod.rs')
| -rw-r--r-- | src/db/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/mod.rs b/src/db/mod.rs index e44c9ad..51665a3 100644 --- a/src/db/mod.rs +++ b/src/db/mod.rs @@ -25,4 +25,8 @@ pub trait ProductDatabaseHandler { ) -> Result<Self, AppError> where Self: Sized; + + async fn delete(pool: &SqlitePool, id: i64) -> Result<(), AppError> + where + Self: Sized; } |
