chore(product): remove decorator where it is not necessary and cleanup (#4731)
* chore(product): remove decorator where it is not necessary and cleanup * Create twenty-gorillas-exist.md
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import {
|
||||
EmitData,
|
||||
EventBusTypes,
|
||||
IEventBusModuleService,
|
||||
Subscriber,
|
||||
IEventBusModuleService
|
||||
} from "@medusajs/types"
|
||||
|
||||
export class EventBusService implements IEventBusModuleService {
|
||||
@@ -11,7 +10,9 @@ export class EventBusService implements IEventBusModuleService {
|
||||
data: T,
|
||||
options: Record<string, unknown>
|
||||
): Promise<void>
|
||||
|
||||
async emit<T>(data: EventBusTypes.EmitData<T>[]): Promise<void>
|
||||
|
||||
async emit<T, TInput extends string | EventBusTypes.EmitData<T>[] = string>(
|
||||
eventOrData: TInput,
|
||||
data?: T,
|
||||
@@ -30,7 +31,5 @@ export class EventBusService implements IEventBusModuleService {
|
||||
return this
|
||||
}
|
||||
|
||||
withTransaction() {
|
||||
|
||||
}
|
||||
withTransaction() {}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ export const productCategoriesData = [
|
||||
{
|
||||
id: "category-1",
|
||||
name: "category 1",
|
||||
parent_category_id: "category-0"
|
||||
parent_category_id: "category-0",
|
||||
},
|
||||
{
|
||||
id: "category-1-a",
|
||||
@@ -23,7 +23,7 @@ export const productCategoriesData = [
|
||||
{
|
||||
id: "category-1-b-1",
|
||||
name: "category 1 b 1",
|
||||
parent_category_id: "category-1-b"
|
||||
parent_category_id: "category-1-b",
|
||||
},
|
||||
]
|
||||
|
||||
@@ -65,4 +65,3 @@ export const productCategoriesRankData = [
|
||||
rank: 2,
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
@@ -2,16 +2,16 @@ export const categoriesData = [
|
||||
{
|
||||
id: "category-0",
|
||||
name: "category 0",
|
||||
parent_category_id: null
|
||||
parent_category_id: null,
|
||||
},
|
||||
{
|
||||
id: "category-1",
|
||||
name: "category 1",
|
||||
parent_category_id: "category-0"
|
||||
parent_category_id: "category-0",
|
||||
},
|
||||
{
|
||||
id: "category-1-a",
|
||||
name: "category 1 a",
|
||||
parent_category_id: "category-1"
|
||||
parent_category_id: "category-1",
|
||||
},
|
||||
]
|
||||
|
||||
@@ -8,6 +8,7 @@ import {
|
||||
ProductType,
|
||||
ProductVariant,
|
||||
} from "@models"
|
||||
|
||||
import ProductOption from "../../../src/models/product-option"
|
||||
|
||||
export * from "./data/create-product"
|
||||
|
||||
Reference in New Issue
Block a user