Skip to content

Commit

Permalink
- Fixed critical issue with record-setting when reading from cache
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidArayan committed Apr 9, 2024
1 parent 396115b commit 7e2ec65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk-core/src/core/query/core-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ export abstract class CoreQuery<T extends CoreObject<U>, U extends CoreObjectAtt
// begin construction of every other instance
for (let i = 1; i < listRecords.length; i++) {
const record = listRecords[i];
const objectInstance: CoreObject<CoreObjectAttributes> | null = cache.get(object.id) || GlobalObjectPool.newInstance(record.type);
const objectInstance: CoreObject<CoreObjectAttributes> | null = cache.get(record.id) || GlobalObjectPool.newInstance(record.type);

if (!objectInstance) {
CoreError.init(url, {
Expand Down

0 comments on commit 7e2ec65

Please sign in to comment.