Closed rafinkanisa closed 2 years ago
Created nodejs script to update organization collection with data imported from csv file. Functionally similar to mongoimport --upsert
which can't do partial update in version 3.0. Still in test.
More info in this comment.
already tested on DEV Server
already on PROD
Describe the bug Similar to https://github.com/iMMAP/ngm-reportDesk/issues/39
Context I found this when I'm trying to add organization and check on the database
To Reproduce Steps to reproduce the behavior:
Expected behavior Any of the organization details in other related collections (e.g. user) should follow with collections "organization". This applies to all reporting collection as well. The organization collection shall refer the details to organizations collection.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context You might have to delete the unused value in organization collection if it's duplicated / the organization shouldn't be active in that country (refer to organizations collection) In case you have doubt which action shall you taken, you can always consult me first