summaryrefslogtreecommitdiff
path: root/dichroism/src/repo/entities/product.rs
diff options
context:
space:
mode:
Diffstat (limited to 'dichroism/src/repo/entities/product.rs')
-rw-r--r--dichroism/src/repo/entities/product.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/dichroism/src/repo/entities/product.rs b/dichroism/src/repo/entities/product.rs
index e6ba223..81f3d9e 100644
--- a/dichroism/src/repo/entities/product.rs
+++ b/dichroism/src/repo/entities/product.rs
@@ -14,6 +14,7 @@ pub struct Product {
pub fullsize: String,
pub base: String,
pub thumbnail: String,
+ pub category: String,
}
impl Into<models::Product> for Product {
@@ -25,7 +26,7 @@ impl Into<models::Product> for Product {
quantity: self.quantity,
cents: self.cents,
featured: self.featured != 0, // TODO: is this safe?
- category: String::new(), // TODO: real category
+ category: self.category,
photo_set: models::PhotoSet {
id: Some(self.photo_set_id),
original: models::Photo::new(self.original),