* feat(medusa): Improve product update performances * fix tests and update * update mock repo * improve repo * cleanup * fix * cleanup + bulk emit + unit test fix * improvements * improve * fix unit tests * fix export * fix product update handler * enhance mock repo * fix import integration * fix end point tests * revert mock repo product variant * fix unit * cleanup * cleanup * address feedback * fix quotes in tests * address feedback * Create new-tips-mate.md * use types
23 lines
411 B
JavaScript
23 lines
411 B
JavaScript
export default {
|
|
getRepository: function (repo) {
|
|
return repo;
|
|
},
|
|
|
|
getCustomRepository: function (repo) {
|
|
if (repo) {
|
|
repo["metadata"] = repo["metadata"] ?? {
|
|
columns: []
|
|
}
|
|
}
|
|
return repo;
|
|
},
|
|
|
|
transaction: function (isolationOrCb, cb) {
|
|
if (typeof isolationOrCb === "string") {
|
|
return cb(this);
|
|
} else {
|
|
return isolationOrCb(this);
|
|
}
|
|
},
|
|
};
|