feat: Add shipping method to cart (#6661)
This commit is contained in:
@@ -21,11 +21,7 @@ import {
|
||||
} from "@mikro-orm/core/typings"
|
||||
import { SqlEntityManager } from "@mikro-orm/postgresql"
|
||||
import { isString } from "../../common"
|
||||
import {
|
||||
InjectTransactionManager,
|
||||
MedusaContext,
|
||||
buildQuery,
|
||||
} from "../../modules-sdk"
|
||||
import { buildQuery } from "../../modules-sdk"
|
||||
import {
|
||||
getSoftDeletedCascadedEntitiesIdsMappedBy,
|
||||
transactionWrapper,
|
||||
@@ -119,10 +115,9 @@ export class MikroOrmBaseRepository<T extends object = object>
|
||||
throw new Error("Method not implemented.")
|
||||
}
|
||||
|
||||
@InjectTransactionManager()
|
||||
async softDelete(
|
||||
idsOrFilter: string[] | InternalFilterQuery,
|
||||
@MedusaContext() sharedContext: Context = {}
|
||||
sharedContext: Context = {}
|
||||
): Promise<[T[], Record<string, unknown[]>]> {
|
||||
const isArray = Array.isArray(idsOrFilter)
|
||||
// TODO handle composite keys
|
||||
@@ -152,10 +147,9 @@ export class MikroOrmBaseRepository<T extends object = object>
|
||||
return [entities, softDeletedEntitiesMap]
|
||||
}
|
||||
|
||||
@InjectTransactionManager()
|
||||
async restore(
|
||||
idsOrFilter: string[] | InternalFilterQuery,
|
||||
@MedusaContext() sharedContext: Context = {}
|
||||
sharedContext: Context = {}
|
||||
): Promise<[T[], Record<string, unknown[]>]> {
|
||||
// TODO handle composite keys
|
||||
const isArray = Array.isArray(idsOrFilter)
|
||||
|
||||
Reference in New Issue
Block a user