Skip to content

Instantly share code, notes, and snippets.

@Suave
Created December 4, 2015 06:47
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