-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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: Region Module (basic CRUD) #6315
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Ignored Deployments
|
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.
LGTM w. a few comments.
packages/region/integration-tests/__tests__/services/region-module.spec.ts
Outdated
Show resolved
Hide resolved
packages/region/integration-tests/__tests__/services/region-module.spec.ts
Outdated
Show resolved
Hide resolved
packages/region/integration-tests/__tests__/services/region-module.spec.ts
Outdated
Show resolved
Hide resolved
data: CreateRegionDTO | CreateRegionDTO[], | ||
@MedusaContext() sharedContext: Context = {} | ||
): Promise<RegionDTO | RegionDTO[]> { | ||
const input = Array.isArray(data) ? data : [data] |
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.
suggestion: same as for phil, as you like
return await this.baseRepository_.serialize<RegionDTO[]>( | ||
Array.isArray(data) ? result : result[0], | ||
{ | ||
populate: true, | ||
} |
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.
suggestion: same as above, phil open a pr for the update, I forgot in the base class
10d26c5
to
47065e6
Compare
47065e6
to
27946af
Compare
27946af
to
4526c15
Compare
b77f6c1
to
64c497c
Compare
3e3d62b
to
09e1bc2
Compare
09e1bc2
to
2680d02
Compare
No description provided.