Skip to content

Commit

Permalink
fix(model): fix typo in for error message
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoPedroAS51 committed Nov 1, 2020
1 parent 89e5c4a commit fbd2bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default class Model extends StaticModel {
}

if (!this.isValidId(object.getPrimaryKey())) {
throw new Error('The object referenced on for() method has a invalid id.')
throw new Error('The object referenced on for() method has an invalid id.')
}

url += `/${object.resource()}/${object.getPrimaryKey()}`
Expand Down

0 comments on commit fbd2bca

Please sign in to comment.