Skip to content

Instantly share code, notes, and snippets.

@Suave
Created December 4, 2015 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Suave/d0a06484d92b83563932 to your computer and use it in GitHub Desktop.
Save Suave/d0a06484d92b83563932 to your computer and use it in GitHub Desktop.
newShop.save()
.then(function(){
return this.body = {retcode:0}
})
.catch(function(err){
console.log("catch: " + err);
/*
if(err) {
return this.body = {retcode: 1, message: err.errors};
} else {
return this.body = {retcode: 0}
}
*/
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment