summaryrefslogtreecommitdiff
path: root/src/db/mod.rs
diff options
context:
space:
mode:
authorWriterV2 <primary-v2@protonmail.com>2024-11-07 18:35:27 +0100
committerWriterV2 <primary-v2@protonmail.com>2024-11-07 18:35:27 +0100
commit680867b4bb5e2708f02fc3f8c21c3563975c44c7 (patch)
tree0e90e583f1696d3c7c66484a5f8dbd919c75245d /src/db/mod.rs
parent99fc959383d5b7b26d8e80f6257adf8b98989f41 (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.rs4
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;
}