u
This commit is contained in:
@@ -10,10 +10,11 @@ export function primaryPhoto(article) {
|
||||
return photos[0] ?? null;
|
||||
}
|
||||
|
||||
/** Map POST /api/article/:sku/image → photos[] entry shape. */
|
||||
/** Map POST /api/article/:sku/image → photos[] entry shape (GET article). */
|
||||
export function photoFromUploadedImage(image) {
|
||||
return {
|
||||
sort: image.sort,
|
||||
fullHash: image.fullHash,
|
||||
thumbW: image.thumb.w,
|
||||
thumbH: image.thumb.h,
|
||||
thumbHash: image.thumbHash,
|
||||
|
||||
Reference in New Issue
Block a user