You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I realised I had a bug in my code - I was checking product custom fields before deciding to add that product to a job queue or not. what i missed was that the custom fields objects was just a whole bunch of nulls.
i'm not sure, but i believe the translatableSaver isn't hydrating (for want of a better word) the updatedProduct with its custom fields before publishing the update event.
Describe the solution you'd like
the translatableSaver to populate custom fields before returning the product entity.
Describe alternatives you've considered
i have worked around this by making another request to get the whole product by id (including custom fields), but it'd be great to not have to do that.
Additional context
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I realised I had a bug in my code - I was checking product custom fields before deciding to add that product to a job queue or not. what i missed was that the custom fields objects was just a whole bunch of nulls.
i'm not sure, but i believe the
translatableSaver
isn't hydrating (for want of a better word) theupdatedProduct
with its custom fields before publishing the update event.vendure/packages/core/src/service/services/product.service.ts
Lines 248 to 268 in 7ea0710
Describe the solution you'd like
the translatableSaver to populate custom fields before returning the product entity.
Describe alternatives you've considered
i have worked around this by making another request to get the whole product by id (including custom fields), but it'd be great to not have to do that.
Additional context
The text was updated successfully, but these errors were encountered: