Created
December 4, 2015 06:47
-
-
Save Suave/d0a06484d92b83563932 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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