Skip to content

Commit

Permalink
fix: typedoc
Browse files Browse the repository at this point in the history
  • Loading branch information
MartianGreed committed Jan 6, 2025
1 parent 3b6067b commit 5d2c518
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/sdk/src/convertQueryToEntityKeyClauses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ export function convertQueryToEntityKeyClauses<T extends SchemaType>(

const { entityIds, ...namespaces } = query;

if (entityIds && entityIds.length > 0) {
clauses.push({ HashedKeys: entityIds });
if (entityIds && entityIds.length && (entityIds.length as number) > 0) {
clauses.push({ HashedKeys: entityIds as string[] });
return clauses;
}

clauses.push(...convertQueryToKeysClause(namespaces, schema));
Expand Down

0 comments on commit 5d2c518

Please sign in to comment.