-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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(tax): add support for updating tax rates #6537
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Ignored Deployments
|
ff50917
to
d597931
Compare
data: TaxTypes.UpsertTaxRateDTO | TaxTypes.UpsertTaxRateDTO[], | ||
@MedusaContext() sharedContext: Context = {} | ||
): Promise<TaxTypes.TaxRateDTO | TaxTypes.TaxRateDTO[]> { | ||
const result = await this.taxRateService_.upsert(data, sharedContext) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will vary from module to module, but many times we'd like to do some validation and normalization to the input before doing update/create, so calling the internal create_ and update_ methods might be better. It might be fine here though, just wanted to mention it
d659c22
to
b768770
Compare
No description provided.