Skip to content

Instantly share code, notes, and snippets.

@LucasBadico
Created October 14, 2019 19:38
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 LucasBadico/678850651930d2629367b77341c2d6f5 to your computer and use it in GitHub Desktop.
Save LucasBadico/678850651930d2629367b77341c2d6f5 to your computer and use it in GitHub Desktop.
create method in repository
export default class GarageRepo {
constructor(mysql, redis) {
this.mysql = mysql;
this.redis = redis;
}
create(attributes) {
return this.mysql.create({
input: attributes,
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment