Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 803fea5

Browse files
author
Dekel Barzilay
committed
model's idColumn will be used when service's options.id is missing
1 parent acda6df commit 803fea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class Service extends AdapterService {
6161
super(Object.assign({
6262
id: 'id',
6363
whitelist
64-
}, options));
64+
}, { id: options.model.idColumn, ...options }));
6565

6666
this.idSeparator = options.idSeparator || ',';
6767
this.jsonSchema = options.model.jsonSchema;

0 commit comments

Comments
 (0)