feat(medusa): Create default sales channel associated to the store (#1830)

**What**
Add support for default sales channel

**How**
- Implement a new method in the salesChannelService `createDefault`
- call the new method above in the default loader

**Test**
- Unit tests of the sales channel service method createDefaulta
- Init default loader unit tests

Fixes CORE-316
This commit is contained in:
Adrien de Peretti
2022-07-11 21:05:28 +00:00
committed by GitHub
parent 19f35ba6aa
commit b402b9f159
10 changed files with 194 additions and 7 deletions
@@ -2,7 +2,6 @@ import { BeforeInsert, Column } from "typeorm"
import { SoftDeletableEntity } from "../interfaces"
import { FeatureFlagEntity } from "../utils/feature-flag-decorators"
import { resolveDbType } from "../utils/db-aware-column"
import { generateEntityId } from "../utils"
@FeatureFlagEntity("sales_channels")