Skip to content

Commit

Permalink
Merge pull request #18 from contentstack/staging
Browse files Browse the repository at this point in the history
Merge staging to master
  • Loading branch information
aman19K authored Oct 25, 2023
2 parents 9259e1b + 554b08f commit 1ae58b7
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 34 deletions.
60 changes: 34 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@contentstack/datasync-content-store-mongodb",
"author": "Contentstack Ecosystem <[email protected]>",
"version": "1.0.5",
"version": "1.0.6",
"description": "Contentstack datasync's mongodb library. Helps to store contents in mongodb",
"main": "dist/index.js",
"dependencies": {
"debug": "^4.3.4",
"lodash": "^4.17.15",
"mongodb": "^5.8.0"
"mongodb": "^6.0.0"
},
"devDependencies": {
"@types/debug": "0.0.31",
Expand Down
2 changes: 0 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ export const config = {
// http://mongodb.github.io/node-mongodb-native/3.1/api/MongoClient.html
options: {
connectTimeoutMS: 15000,
keepAlive: true,
noDelay: true,
useNewUrlParser: true,
},
unwantedKeys: {
asset: {
Expand Down
4 changes: 2 additions & 2 deletions src/mongodb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export class Mongodb {
})
.then((result) => {
debug(`Asset unpublish status: ${JSON.stringify(result)}`)
if (result.value === null) {
if (result === null) {
return resolve(asset)
}

Expand All @@ -337,7 +337,7 @@ export class Mongodb {
},
locale: asset.locale,
uid: asset.uid,
url: result.value.url,
url: result.url,
})
.toArray()
.then((assets) => {
Expand Down
2 changes: 0 additions & 2 deletions typings/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ export declare const config: {
dbName: string;
options: {
connectTimeoutMS: number;
keepAlive: boolean;
noDelay: boolean;
useNewUrlParser: boolean;
};
unwantedKeys: {
asset: {
Expand Down

0 comments on commit 1ae58b7

Please sign in to comment.