feat(product): price standalone products from the cover alone
build / build (push) Successful in 8m52s
build / build (push) Successful in 8m52s
Recovered work in progress from 2026-05. A product-cover can be marked standalone, and a standalone product (Journaling Booklet) prices as the cover price without the pattern/pages/ruling lookups, which do not exist for it. The remaining component lookups are now guarded so a missing relation yields null instead of calling findOne with undefined.
This commit is contained in:
Vendored
+1
@@ -453,6 +453,7 @@ export interface ApiProductCoverProductCover extends Schema.CollectionType {
|
||||
number
|
||||
> &
|
||||
Attribute.DefaultTo<0>;
|
||||
standalone: Attribute.Boolean & Attribute.DefaultTo<false>;
|
||||
updatedAt: Attribute.DateTime;
|
||||
updatedBy: Attribute.Relation<"api::product-cover.product-cover", "oneToOne", "admin::user"> & Attribute.Private;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user