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

Commit 7b53349

Browse files
author
Dekel Barzilay
committed
Removed unneeded logic in get query after creating a row
1 parent 8aa4de3 commit 7b53349

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,10 +482,10 @@ class Service extends AdapterService {
482482
id = [];
483483

484484
for (const idKey of this.id) {
485-
id.push(typeof data[idKey] !== 'undefined' ? data[idKey] : row[idKey]);
485+
id.push(row[idKey]);
486486
}
487487
} else {
488-
id = typeof data[this.id] !== 'undefined' ? data[this.id] : row[this.id];
488+
id = row[this.id];
489489
}
490490

491491
return this._get(id, params);

0 commit comments

Comments
 (0)