From fe5403014267b81142581f54c38e4576a391ea6f Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Mon, 16 Nov 2020 19:55:48 -0500 Subject: Thumbnails and shortened descriptions. --- dichroism/src/dtos/product_get.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dichroism/src/dtos/product_get.rs') diff --git a/dichroism/src/dtos/product_get.rs b/dichroism/src/dtos/product_get.rs index 3f68eef..aa52f19 100644 --- a/dichroism/src/dtos/product_get.rs +++ b/dichroism/src/dtos/product_get.rs @@ -24,9 +24,9 @@ impl From for ProductGet { quantity: p.quantity, featured: p.featured, category: p.category, - photo_fullsize: p.photo_set.fullsize.filename(), - photo_base: p.photo_set.base.filename(), - photo_thumbnail: p.photo_set.thumbnail.filename(), + photo_fullsize: p.photo_set.fullsize.id, + photo_base: p.photo_set.base.id, + photo_thumbnail: p.photo_set.thumbnail.id, } } } -- cgit v1.2.3