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: drizzle plugin model loader when multiple models are requested #1343

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

olup
Copy link
Contributor

@olup olup commented Nov 12, 2024

No description provided.

Copy link

vercel bot commented Nov 12, 2024

@olup is attempting to deploy a commit to the Michael Hayes' projects Team on Vercel.

A member of the Team first needs to authorize it.

@olup olup force-pushed the fix-model-loaders branch from 8957655 to f0690c3 Compare November 12, 2024 14:27
Copy link

changeset-bot bot commented Nov 12, 2024

🦋 Changeset detected

Latest commit: c71b6bd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@pothos/plugin-drizzle Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -178,7 +178,7 @@ export class ModelLoader {
...selectionToQuery(selection),
where: inArray(
this.selectSQL,
[entry.models.keys()].map(([model]) => this.sqlForModel(model)),
[...entry.models.keys()].map((model) => this.sqlForModel(model)),
Copy link
Owner

Choose a reason for hiding this comment

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

good find!

Copy link
Owner

@hayes hayes left a comment

Choose a reason for hiding this comment

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

thanks for fixing this!

@hayes hayes merged commit 20f9ae0 into hayes:main Nov 12, 2024
3 of 4 checks passed
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.

2 participants