sealuzh/cloud-stove-ui

User_Workload does not get saved

gmazlami opened this issue · 1 comments

When changing the user workload with the slider, the JSON that is passed to the backend only has the num_simultaneous_users property, but it doesn't have any ìngredient_id, hence on the backend, the user_workload does not get assigned to any ingredient.

See also the screenshots of the chrome debugger:

selection_015
selection_014

Are user_workloads properly assigned to a user in the backend?

I get stuff like this:

Couldn't find UserWorkload with 'id'=3 [WHERE "user_workloads"."user_id" = ?]

Although the request clearly has a token, and the ingredient has this specific workload assigned to it.