fastsurvey / backend

FastSurvey's backend that's crunching the data
1 stars 0 forks source link

Fetch config: Response from backend does not change with config in database. #56

Closed dostuffthatmatters closed 3 years ago

dostuffthatmatters commented 3 years ago

I am using the current backend.dev.fastsurvey.io server.

I used GET https://backend.dev.fastsurvey.io/users/dostuffthatmatters/surveys/badum to fetch a config. After that I modified the description in the console (in the database it has also been updated).

However, the fetch-config response from the backend remains unchanged. After five minutes (server has not shut down) the response is still the same. But /users/dostuffthatmatters/surveys (fetch all configs with authentication) works fine.

Both testing and production don't have the dostuffthatmatters account so I am sure that all of this is using the same database.

dostuffthatmatters commented 3 years ago

Same thing for a new survey I created. The first version of the config (template from creation) will be returned.

dostuffthatmatters commented 3 years ago

After the server has shut down once the new version was returned.

empicano commented 3 years ago

This is related to #49, will fix that soon, sorry for the wait! Due to the error thrown the survey cache is not updated, when you restart the server, the survey is loaded freshly from the database again, that's why it works afterwards.

dostuffthatmatters commented 3 years ago

No worries :) I have enough stuff to do left 😅

dostuffthatmatters commented 3 years ago

empicano commented 3 years ago

giphy