|
@@ -4,7 +4,8 @@ import {
|
|
|
DeletionResponse,
|
|
DeletionResponse,
|
|
|
MutationAssignPromotionsToChannelArgs,
|
|
MutationAssignPromotionsToChannelArgs,
|
|
|
MutationCreatePromotionArgs,
|
|
MutationCreatePromotionArgs,
|
|
|
- MutationDeletePromotionArgs, MutationDeletePromotionsArgs,
|
|
|
|
|
|
|
+ MutationDeletePromotionArgs,
|
|
|
|
|
+ MutationDeletePromotionsArgs,
|
|
|
MutationRemovePromotionsFromChannelArgs,
|
|
MutationRemovePromotionsFromChannelArgs,
|
|
|
MutationUpdatePromotionArgs,
|
|
MutationUpdatePromotionArgs,
|
|
|
Permission,
|
|
Permission,
|
|
@@ -125,7 +126,7 @@ export class PromotionResolver {
|
|
|
@Ctx() ctx: RequestContext,
|
|
@Ctx() ctx: RequestContext,
|
|
|
@Args() args: MutationDeletePromotionsArgs,
|
|
@Args() args: MutationDeletePromotionsArgs,
|
|
|
): Promise<DeletionResponse[]> {
|
|
): Promise<DeletionResponse[]> {
|
|
|
- return Promise.all(args.ids.map(id => this.promotionService.softDeletePromotion(ctx, id));
|
|
|
|
|
|
|
+ return Promise.all(args.ids.map(id => this.promotionService.softDeletePromotion(ctx, id)));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Transaction()
|
|
@Transaction()
|