summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorWriterV2 <primary-v2@protonmail.com>2025-11-21 15:27:21 +0100
committerWriterV2 <primary-v2@protonmail.com>2025-11-21 15:27:21 +0100
commit4c73ae9ee6e322fd8cba8d4290a5a86d85651576 (patch)
tree574f47015d87e1d61ad33f6fd85d106a18f2e1ba /src/db
parent66d7a13414e2b185df5155a83bbdb842d3618c27 (diff)
Add admin endpoints to list stories and products
Diffstat (limited to 'src/db')
-rw-r--r--src/db/product.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/product.rs b/src/db/product.rs
index 0b90810..e5e797f 100644
--- a/src/db/product.rs
+++ b/src/db/product.rs
@@ -82,7 +82,7 @@ pub struct SpecificProduct<T: ProductMarker> {
pub detail: T,
}
-async fn get_all_products(pool: &SqlitePool) -> Result<Vec<Product>, AppError> {
+pub async fn get_all_products(pool: &SqlitePool) -> Result<Vec<Product>, AppError> {
Ok(sqlx::query_as!(Product, "SELECT * FROM product")
.fetch_all(pool)
.await?)