Skip to content

Commit

Permalink
Update plugin to export anonymously
Browse files Browse the repository at this point in the history
This updates the plugin to anonymously export the Model extension as
suggested by @koskimas and accordingly with the update on the
Objection.js plugin best practices.

Check Vincit/objection.js#475 for more on best
practices update.

Closes #3.
  • Loading branch information
nunorafaelrocha committed Aug 11, 2017
1 parent f29ad39 commit fe0d5c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = options => {
}, options);

return Model => {
return class UniquePlugin extends Model {
return class extends Model {

/**
* Before insert.
Expand Down

0 comments on commit fe0d5c1

Please sign in to comment.