Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: mapper function should be partial #6475

Merged
merged 2 commits into from
Mar 8, 2024
Merged

fix: mapper function should be partial #6475

merged 2 commits into from
Mar 8, 2024

Conversation

gastonfournier
Copy link
Contributor

Small fix to make mapper function partial as it should be

Verified

This commit was signed with the committer’s verified signature.
gastonfournier Gastón Fournier
Copy link

vercel bot commented Mar 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Mar 8, 2024 10:02am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Mar 8, 2024 10:02am

Verified

This commit was signed with the committer’s verified signature.
gastonfournier Gastón Fournier
@@ -64,14 +64,14 @@ export abstract class CRUDStore<
allQuery = allQuery.where(this.toRow(query) as Record<string, any>);
}
const items = await allQuery;
return items.map(this.fromRow);
return items.map(this.fromRow) as ReadModel[];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In all these internal methods we know we're fetching all data

@gastonfournier gastonfournier merged commit 1949d01 into main Mar 8, 2024
7 checks passed
@gastonfournier gastonfournier deleted the crud-partial branch March 8, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants