Skip to content

Commit

Permalink
Refactor idColumn use and bumped version to 3.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Dekel Barzilay committed Feb 15, 2019
1 parent b5ded3f commit 5893fd1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "feathers-objection",
"description": "A service plugin for ObjectionJS an ORM based on KnexJS",
"version": "3.1.1",
"version": "3.1.2",
"homepage": "https://github.com/feathersjs-ecosystem/feathers-objection",
"keywords": [
"feathers",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ class Service extends AdapterService {
const whitelist = Object.values(OPERATORS).concat(options.whitelist || []);

super(Object.assign({
id: 'id',
id: options.model.idColumn || 'id',
whitelist
}, { id: options.model.idColumn, ...options }));
}, options));

this.idSeparator = options.idSeparator || ',';
this.jsonSchema = options.model.jsonSchema;
Expand Down

0 comments on commit 5893fd1

Please sign in to comment.