We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Teers,
In lib/database file, the method db.add() always set createdAt key, but this method is called in db.update too, and the createdAt key is override.
https://github.com/hoodiehq/hoodie-plugins-api/blob/master/lib/database.js#L46
I don't know if this is a best practice, but i added a hotfix on like 46:
46 if (!doc.createdAt) doc.createdAt = new Date();
Thanks
The text was updated successfully, but these errors were encountered:
Good find, I’ll take a look. If you fancy, wanna write a test case that demonstrates the issue? This will help us to resolve this quicker.
Sorry, something went wrong.
No branches or pull requests
Teers,
In lib/database file, the method db.add() always set createdAt key, but this method is called in db.update too, and the createdAt key is override.
https://github.com/hoodiehq/hoodie-plugins-api/blob/master/lib/database.js#L46
I don't know if this is a best practice, but i added a hotfix on like 46:
Thanks
The text was updated successfully, but these errors were encountered: