Feat(medusa-test-utils, utils, pricing, product, link-modules): upgrade mikro orm version to latest (#5985)
* update mikro-orm version * add changeset * update product tests * add optional number serializer util * upgrade cart mikro-orm versions * clean up test
This commit is contained in:
@@ -21,6 +21,7 @@ export * from "./map-object-to"
|
||||
export * from "./medusa-container"
|
||||
export * from "./object-from-string-path"
|
||||
export * from "./object-to-string-path"
|
||||
export * from "./optional-numeric-serializer"
|
||||
export * from "./promise-all"
|
||||
export * from "./remote-query-object-from-string"
|
||||
export * from "./remote-query-object-to-string"
|
||||
|
||||
4
packages/utils/src/common/optional-numeric-serializer.ts
Normal file
4
packages/utils/src/common/optional-numeric-serializer.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import { isDefined } from "./is-defined"
|
||||
|
||||
export const optionalNumericSerializer = (value) =>
|
||||
isDefined(value) && value !== null ? Number(value) : value
|
||||
Reference in New Issue
Block a user