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

feat(go-sdk): add ability to create workflows from the Go SDK more easily, quickstart improvements #30

Merged
merged 19 commits into from
Jan 2, 2024

Conversation

abelanger5
Copy link
Contributor

No description provided.

Comment on lines +212 to +224
// This is unfortunate but due to https://github.com/steebchen/prisma-client-go/issues/1095,
// we cannot set db.Worker.Actions.Link multiple times, and since Link required a unique action
// where clause, we have to do these in separate transactions
txs = append(txs, w.client.Worker.FindUnique(
db.Worker.ID.Equals(workerId),
).Update(
db.Worker.Actions.Link(
db.Action.TenantIDID(
db.Action.TenantID.Equals(tenantId),
db.Action.ID.Equals(action),
),
),
))
).Tx())
Copy link
Member

@steebchen steebchen Dec 29, 2023

Choose a reason for hiding this comment

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

@abelanger5 can you please elaborate on this? I don't quite understand (resolved via DM)

Copy link

vercel bot commented Jan 2, 2024

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

Name Status Preview Comments Updated (UTC)
hatchet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 2, 2024 2:02pm

@abelanger5 abelanger5 merged commit 5937b9f into main Jan 2, 2024
13 checks passed
@abelanger5 abelanger5 deleted the belanger/improve-go-sdk branch January 2, 2024 14:02
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