summaryrefslogtreecommitdiff
path: root/dichroism/src/dtos/mod.rs
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-10-23 08:10:13 -0400
committerAdam T. Carpenter <atc@53hor.net>2020-10-23 08:10:13 -0400
commit00c71f6baff136a88805ca2e3f9ef72453ac9f35 (patch)
tree49db87097f949edce1f6639ba4118cff852e3937 /dichroism/src/dtos/mod.rs
parent5cb0869b94fc8b9aff564055af9a60046de7b028 (diff)
downloadtheglassyladies-00c71f6baff136a88805ca2e3f9ef72453ac9f35.tar.xz
theglassyladies-00c71f6baff136a88805ca2e3f9ef72453ac9f35.zip
moved entities under repo; photos now hold onto just the filename
Diffstat (limited to 'dichroism/src/dtos/mod.rs')
-rw-r--r--dichroism/src/dtos/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/dichroism/src/dtos/mod.rs b/dichroism/src/dtos/mod.rs
index 76b04c7..d7e1ab5 100644
--- a/dichroism/src/dtos/mod.rs
+++ b/dichroism/src/dtos/mod.rs
@@ -62,9 +62,9 @@ impl From<models::Product> for Product {
quantity: p.quantity,
featured: p.featured,
category: p.category,
- photo_fullsize: p.photo_set.fullsize.path,
- photo_base: p.photo_set.base.path,
- photo_thumbnail: p.photo_set.thumbnail.path,
+ photo_fullsize: p.photo_set.fullsize.filename,
+ photo_base: p.photo_set.base.filename,
+ photo_thumbnail: p.photo_set.thumbnail.filename,
}
}
}