Meteor is auto-removing all accounts

All of a sudden my meteor application decided that it wanted to delete every account that I made after I signed out of it. The only changes I’ve made recently don’t even touch accounts and I removed them and the problem reoccured. I even tried copying my code and remaking the app from scratch. Here’s my code:

Line 93:

 Meteor.users.update(userId, score);

Whoops… :wink: That’s something I ran into earlier – it’s so easy to forget to use $set in MongoDB update() calls… and swoosh, the whole record is gone/replaced! Though your code doesn’t show that Meteor method being called…

1 Like

Thanks for pointing that out! Although you are correct, that method is never called.

1 Like

The solution so far for everything in meteor that I have encountered is to just rebuild the project. Not very efficient but it works.