Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(db-mongodb): potential errors in
sanitizeRelationshipIDs
with `…
…ref` being a non object (#9292) ### What? Fixes potential errors when passed to `sanitizeRelationships` `ref` could potentially be a non object (for example `string`) because of having in the database data in old structure. ``` "Cannot create property 'a' on string 'B'", ``` ### Why? Necessary particularly for the migration script, as it migrates everything including versions that can have outdated data. ### How? Ensures passed `ref` is an `object`.
- Loading branch information