chore: Merge master to develop (#3653)
This commit is contained in:
1 parent
b2e2eddcea
commit
809ab2e0eb
120 files changed
+2240
-585
No files matched your search
@@ -9,6 +9,11 @@
|
||||
- Plugin repository loader to work with Typeorm update
|
||||
- Updated dependencies [[`121b42acf`](https://github.com/medusajs/medusa/commit/121b42acfe98c12dd593f9b1f2072ff0f3b61724), [`aa690beed`](https://github.com/medusajs/medusa/commit/aa690beed775646cbc86b445fb5dc90dcac087d5), [`54dcc1871`](https://github.com/medusajs/medusa/commit/54dcc1871c8f28bea962dbb9df6e79b038d56449), [`77d46220c`](https://github.com/medusajs/medusa/commit/77d46220c23bfe19e575cbc445874eb6c22f3c73)]:
|
||||
- medusa-core-utils@1.2.0-rc.0
|
||||
## 1.1.40
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#3417](https://github.com/medusajs/medusa/pull/3417) [`fa4049cb5`](https://github.com/medusajs/medusa/commit/fa4049cb51232b2ed7091b1322c3fc14cd23e451) Thanks [@adrien2p](https://github.com/adrien2p)! - chores(medusa): Refactoring product update flow to improve handling and performances
|
||||
|
||||
## 1.1.39
|
||||
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
export default {
|
||||
connection: {
|
||||
getMetadata: (target) => {
|
||||
|
||||
return target["metadata"] ?? {
|
||||
columns: []
|
||||
}
|
||||
}
|
||||
return (
|
||||
target["metadata"] ?? {
|
||||
columns: [],
|
||||
}
|
||||
)
|
||||
},
|
||||
},
|
||||
|
||||
getRepository: function (repo) {
|
||||
|
||||
@@ -14,7 +14,7 @@ class MockRepo {
|
||||
del,
|
||||
count,
|
||||
insertBulk,
|
||||
metadata
|
||||
metadata,
|
||||
}) {
|
||||
this.create_ = create
|
||||
this.update_ = update
|
||||
@@ -31,7 +31,7 @@ class MockRepo {
|
||||
this.insertBulk_ = insertBulk
|
||||
|
||||
this.metadata = metadata ?? {
|
||||
columns: []
|
||||
columns: [],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,22 +88,11 @@ class MockRepo {
|
||||
return this.findDescendantsTree_(...args)
|
||||
}
|
||||
})
|
||||
findOneOrFail = jest.fn().mockImplementation((...args) => {
|
||||
if (this.findOneOrFail_) {
|
||||
return this.findOneOrFail_(...args)
|
||||
}
|
||||
})
|
||||
|
||||
find = jest.fn().mockImplementation((...args) => {
|
||||
if (this.find_) {
|
||||
return this.find_(...args)
|
||||
}
|
||||
})
|
||||
softRemove = jest.fn().mockImplementation((...args) => {
|
||||
if (this.softRemove_) {
|
||||
return this.softRemove_(...args)
|
||||
}
|
||||
})
|
||||
save = jest.fn().mockImplementation((...args) => {
|
||||
if (this.save_) {
|
||||
return this.save_(...args)
|
||||
|
||||
Reference in new issue
Block a user