Skip to content

Instantly share code, notes, and snippets.

@jimmycann
Created January 7, 2017 04:44
Show Gist options
  • Save jimmycann/49e05f5ade357ea2e199e9d3877d470e to your computer and use it in GitHub Desktop.
Save jimmycann/49e05f5ade357ea2e199e9d3877d470e to your computer and use it in GitHub Desktop.
create: function(data) {
return User.create({
username: data.username,
password: data.password
}).then((result) => {
return Bluebird.resolve(result)
}).catch((err) => {
return Bluebird.reject(err)
})
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment