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
I don't fully understand the reasons for this problem, but to me it looks like a bug in lowdb-api, lowdb or lodash. The steps to reproduce the issue are shown below.
The source of the problem seems to be here. The call to db.defaults() works fine the first time. But on the second run the defaultResource is not the default anymore, but contains the data for the first resource. The first call seems to have altered defaultResource, though I don't know why and how.
A workaround is to inline the defaultResource into the call like this:
I don't fully understand the reasons for this problem, but to me it looks like a bug in lowdb-api, lowdb or lodash. The steps to reproduce the issue are shown below.
The source of the problem seems to be here. The call to
db.defaults()
works fine the first time. But on the second run thedefaultResource
is not the default anymore, but contains the data for the first resource. The first call seems to have altereddefaultResource
, though I don't know why and how.A workaround is to inline the
defaultResource
into the call like this:Steps to reproduce:
artists
:rounds
:The text was updated successfully, but these errors were encountered: