Skip to content
New issue

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

server-nodejs: upsert should only set the author and time keys upon creation #256

Closed
remyla opened this issue Jan 7, 2021 · 0 comments
Closed

Comments

@remyla
Copy link
Owner

remyla commented Jan 7, 2021

The upsert operation either updates an existing node or creates it if it doesn't exist.

The author and time keys are automatically set upon node creation (see specs). Right now when we use the upsert operation the author and time keys are also updated if the node already existed.

If an user which is not the author of the node updates a node, he will become the owner. We would like to avoid this, the author key has to remain unchanged upon updates as well as the time key.

@remyla remyla closed this as completed in f8b9fe0 Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant