-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
refactor: migrate pricing entities to DML models #10335
base: develop
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
6 Skipped Deployments
|
packages/modules/pricing/integration-tests/__tests__/services/pricing-module/price-list.spec.ts
Show resolved
Hide resolved
packages/modules/pricing/integration-tests/__tests__/services/pricing-module/price-list.spec.ts
Show resolved
Hide resolved
packages/modules/pricing/integration-tests/__tests__/services/pricing-module/price-list.spec.ts
Show resolved
Hide resolved
}, | ||
]) | ||
|
||
Price.name = "Price" as any |
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.
The model name is converted to price
via DML which under the uses the toCamelCase
util and our toCamelCase
util ain't correct 🤣
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.
The name of the DML and the name of the mikro orm entity can be different in casing, for the mikro orm entity we apply specific conversion, and the idea is that any adapter can get from the base casing and case it has they need for the underlying tec they are using. In the repositories we can just use this.entity.name or this.entity
Fixes: FRMW-2810