Skip to content

Commit

Permalink
update for null check, cleanup test:lint cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
ekdeveloper committed Sep 13, 2024
1 parent 262a057 commit 51ba001
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"start": "node src/index.js",
"nodemon": "cross-env NODE_ENV=development; node scripts/nodemon;",
"test": "yarn run test:lint",
"test:lint": "ls -la && ls -la src/ && ls -la src/services/ && eslint \"src/**/*.js\"",
"test:lint": "eslint \"src/**/*.js\"",
"test:jest": "jest --forceExit",
"prettier-check": "prettier --check \"**/*.{js,mjs,cjs,jsx,json,ts,tsx,md,mdx,css,html,yml,yaml,scss,less,graphql,graphqls,gql}\"",
"prettier-fix": "prettier --write \"**/*.{js,mjs,cjs,jsx,json,ts,tsx,md,mdx,css,html,yml,yaml,scss,less,graphql,graphqls,gql}\""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ module.exports.update = (args, { req }) =>
.then(() => {
return resolve({
id: id,
created: res && res.lastErrorObject ? !res.lastErrorObject.updatedExisting : false,
created:
res && res.lastErrorObject ? !res.lastErrorObject.updatedExisting : false,
resource_version: doc.meta.versionId,
});
})
Expand Down

0 comments on commit 51ba001

Please sign in to comment.