Skip to content

Commit

Permalink
Added patch for #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Wilkerson committed Mar 22, 2018
1 parent 5686eb1 commit 50731b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const adapter = {
ds.save(entities.map(createSavableEntity))
.then(() => {

if (!s3q.meta.fetch) { return done(); }
if (!s3q.meta || !s3q.meta.fetch) { return done(); }

const items = entities.map(entity => entityToItem({entity, model}));

Expand Down Expand Up @@ -147,7 +147,7 @@ const adapter = {
.update(updates)
.then(() => {

if (!s3q.meta.fetch) { return done(); }
if (!s3q.meta || !s3q.meta.fetch) { return done(); }

const items = updates.map(entity => entityToItem({entity, model}));

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sails-google-cloud-datastore",
"version": "1.0.2",
"version": "1.0.3",
"description": "Google Cloud Datastore adapter for Sails.js/Waterline.",
"main": "./lib/",
"scripts": {
Expand Down

0 comments on commit 50731b7

Please sign in to comment.