diff options
Diffstat (limited to 'src/db/story.rs')
| -rw-r--r-- | src/db/story.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/db/story.rs b/src/db/story.rs index 5acc818..ee79e4f 100644 --- a/src/db/story.rs +++ b/src/db/story.rs @@ -4,6 +4,7 @@ use sqlx::SqlitePool; use crate::error::AppError; use crate::db::product::Product; +use super::product::ProductMarker; use super::ProductDatabaseHandler; @@ -16,6 +17,8 @@ pub struct Story { pub pid: i64, } +impl ProductMarker for Story {} + #[async_trait] impl ProductDatabaseHandler for Story { async fn get_all(pool: SqlitePool) -> Result<Vec<Self>, AppError> |
