add is_disabled to create sales channel (#1928)

**What**
- include `is_disabled` when creating a sales channel

**Why**
- To enable creation of draft sales channels
This commit is contained in:
Philip Korsholm authored and GitHub committed 2022-07-28 14:17:11 +00:00
1 parent 97c48a5ab9
commit 5ce8839c54
3 files changed
+130 -94

No files matched your search

@@ -1,5 +1,5 @@
import { Request, Response } from "express"
import { IsOptional, IsString } from "class-validator"
import { IsBoolean, IsOptional, IsString } from "class-validator"
import SalesChannelService from "../../../../services/sales-channel"
import { CreateSalesChannelInput } from "../../../../types/sales-channels"
@@ -44,4 +44,8 @@ export class AdminPostSalesChannelsReq {
@IsString()
@IsOptional()
description: string
@IsBoolean()
@IsOptional()
is_disabled?: boolean
}