Browse Source

Merge pull request #2966 from Lezek123/migration-scripts-force-memberid-fix

Migration scripts: Fix for --forceChannelOwnerMemberId=0
Mokhtar Naamani 3 years ago
parent
commit
f5d5002e5f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/migration-scripts/src/sumer-giza/ContentMigration.ts

+ 1 - 1
utils/migration-scripts/src/sumer-giza/ContentMigration.ts

@@ -35,7 +35,7 @@ export class ContentMigration {
 
   private async getForcedChannelOwner(): Promise<{ id: string; controllerAccount: string } | undefined> {
     const { forceChannelOwnerMemberId } = this.config
-    if (forceChannelOwnerMemberId) {
+    if (forceChannelOwnerMemberId !== undefined) {
       const ownerMember = await this.api.query.members.membershipById(forceChannelOwnerMemberId)
       if (ownerMember.isEmpty) {
         throw new Error(`Membership by id ${forceChannelOwnerMemberId} not found!`)