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
should create a user document with the properties signedUpAt and createdAt set to, well, the timestamp the doc was created. However, if you do it, they are not set.
The code just takes it from the passed properties and in the smoke test both properties are passed to the call, so that works.
So this is either:
A legit bug and we should have default values for this, kinda like this (omitting tests for this):
just fyi: the reason why we didn’t run into this with other project is that we currently pass createdAt / signedUpAt in @hoodie/account-server/routes/account.js.
We have split the routes and the api logic recently. I agree that at least the createdAt / updatedAt timestamps should be implemented in @hoodie/account-server-api. I think we can leave the .signedUpAt property in the routes handler, but that’s up for discussion
devguykyle
pushed a commit
to devguykyle/hoodie-account-server-api
that referenced
this issue
Feb 8, 2018
So according to https://github.com/hoodiehq/hoodie-account-server-api#apiaccountsadd calling
api.accounts.add()
like this:should create a user document with the properties
signedUpAt
andcreatedAt
set to, well, the timestamp the doc was created. However, if you do it, they are not set.The code just takes it from the passed properties and in the smoke test both properties are passed to the call, so that works.
So this is either:
The text was updated successfully, but these errors were encountered: