Skip to content

Commit 71a783a

Browse files
use mergeWith during creation of schema list
1 parent bd836bb commit 71a783a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"author": "Contentstack Ecosystem <[email protected]>",
33
"name": "datasync-mongodb-sdk",
4-
"version": "1.0.4",
4+
"version": "1.0.5",
55
"description": "Mongodb query wrapper around contents synced via @contentstack/content-store-mongodb",
66
"main": "dist/index.js",
77
"scripts": {

src/stack.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import {
88
merge,
9+
mergeWith,
910
remove,
1011
} from 'lodash'
1112
import {
@@ -2125,7 +2126,7 @@ export class Stack {
21252126

21262127
schemas.forEach((schema) => {
21272128
// Entry references
2128-
entryReferences = merge(entryReferences, schema[this.types.references])
2129+
entryReferences = mergeWith(entryReferences, schema[this.types.references])
21292130
// tslint:disable-next-line: forin
21302131
for (const path in schema[this.types.assets]) {
21312132
paths.push(path)

0 commit comments

Comments
 (0)