Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Commit

Permalink
feat(sdk): fix indexing properly in dexie
Browse files Browse the repository at this point in the history
  • Loading branch information
joeandrews committed Mar 30, 2020
1 parent 5347842 commit 78f524c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default async function latest(
}

let matchingIds;
if (filterOptions) {
if (Object.keys(filterOptions).length) {
const query = getDB(networkId)[modelName].where(filterOptions);
matchingIds = new Set(await query.primaryKeys());
if (!matchingIds.size) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ export default Model({
'scalingFactor',
'canAdjustSupply',
'canConvert',
'[blockNumber+registryOwner]',
],
});
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default Model({
'asset',
'blockNumber',
'owner',
// 'assetOwner',
'[asset+owner]',
],
optionalFields: [
// 'owner',
Expand Down

0 comments on commit 78f524c

Please sign in to comment.