tomassasovsky / WeAppe.ar

Open-Source time logger backend made in Dart
MIT License
5 stars 0 forks source link

hotfix: career condition on new inserts for users in organizations, and possible duplicates on every collection #22

Open tomassasovsky opened 2 years ago

tomassasovsky commented 2 years ago

This should be fixed by implementing schema validation for the collections and creating a unique index where fitting.

see https://github.com/mongo-dart/mongo_dart/issues/282 and https://github.com/mongo-dart/mongo_dart/issues/283 for some guidance.

tomassasovsky commented 2 years ago

This keeps happening with clock ins. the current idea is to have a queue per user that's limited to one parallel process.

NazarenoCavazzon commented 2 years ago

@tomassasovsky isn't this done?