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

SignIn error with updateOne #201

Open
ddfridley opened this issue Sep 25, 2022 · 1 comment
Open

SignIn error with updateOne #201

ddfridley opened this issue Sep 25, 2022 · 1 comment

Comments

@ddfridley
Copy link
Contributor

Another defect noticed when trying to post moderator (this time I do have cloudinary setup):
[1] [2022-09-24T18:50:04.068] [ERROR] node - sign_in trying to update user info failed TypeError: Update document requires atomic operators
[1] at new UpdateOneOperation (/home/ihudson/src/undebate-ssp/node_modules/mongodb/lib/operations/update_one.js:14:13)
[1] at Collection.updateOne (/home/ihudson/src/undebate-ssp/node_modules/mongodb/lib/collection.js:772:5)
[1] at Function.updateOne (/home/ihudson/src/undebate-ssp/node_modules/mongo-models/index.js:454:41)
[1] at signIn (/home/ihudson/src/undebate-ssp/node_modules/civil-server/dist/routes/sign-in.js:82:27) User {
[1] _id: 632fa57a085e6c5a807d8295,

The code for this is in https://github.com/EnCiv/civil-server/blob/main/app/routes/sign-in.js

@ice1080
Copy link
Collaborator

ice1080 commented Sep 26, 2022

This issue was only seen once on 24-Sep-2022 and when the app was run again with a reset db on 25-Sep-2022 it did not occur again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants