metalizzsas / NusterKit

Nuster — Automate with JSON
1 stars 0 forks source link

Updated profile skeletons leads to missing fields #141

Closed Kworz closed 1 year ago

Kworz commented 2 years ago

When updating a profile skeleton, Profiles depending this skeleton are not given new default values. This could lead cycle crash due to missing profile fields.

When profile hydration takes place we should add new fields to stored profile.

Kworz commented 2 years ago

https://github.com/metalizzsas/NusterKit/blob/1a7fda1df591520414a3af71d4f2b9f3d170f5a0/packages/turbine/src/controllers/profile/ProfilesController.ts#L305

We should map the skeleton field instead of mapping profile fields