Skip to content

Commit

Permalink
fixed publish fail in YARN #183 fix eslint error @W1U02 patch
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpicado committed May 14, 2017
1 parent 502d20e commit dc8fe02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 352,7 @@ module.exports = function(config, auth, storage) {
if (metadata._attachments == null) {
if (err) return next(err);
res.status(201);
return next({ok: ok_message});
return next({ok: ok_message, success: true});
}

// npm-registry-client 0.3 embeds tarball into the json upload
Expand Down Expand Up @@ -384,7 384,7 @@ module.exports = function(config, auth, storage) {
if (err) return next(err);
notify(metadata, config);
res.status(201);
return next({ok: ok_message});
return next({ok: ok_message, success: true});
});
});
});
Expand Down

0 comments on commit dc8fe02

Please sign in to comment.