Skip to content

Commit

Permalink
Merge pull request #97 from ssi-dk/skp/fix-tbr-sync
Browse files Browse the repository at this point in the history
fix: dont sync samples without isolate_id
  • Loading branch information
sjkp committed Sep 9, 2024
2 parents 6ba1ab3 + a645864 commit dd26e1c
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,12 @@ def run_sync_job(self):
# {"$unwind": {"path": "$metadata", "preserveNullAndEmptyArrays": True}},
{
"$match": {
"$or": [
{"metadata.gdpr_deleted": {"$exists": False}},
{"metadata.gdpr_deleted": False},
"$and": [
{"isolate_id": {"$ne": null}},
{"$or": [
{"metadata.gdpr_deleted": {"$exists": False}},
{"metadata.gdpr_deleted": False},
]}
]
}
},
Expand Down

0 comments on commit dd26e1c

Please sign in to comment.