Skip to content

Commit

Permalink
Use internal methods in create (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
t2t2 authored and daffl committed Jun 1, 2016
1 parent b603138 commit e28ff82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class Service {
}

_create(data, params) {
return this.db().insert(data, this.id).then(rows => this.get(rows[0], params))
return this.db().insert(data, this.id).then(rows => this._get(rows[0], params))
.catch(errorHandler);
}

Expand Down

0 comments on commit e28ff82

Please sign in to comment.