From e7b87b8a1ad6daebd23bca2a0d86b4f69f76d6bf Mon Sep 17 00:00:00 2001 From: Jake Naviasky Date: Mon, 26 Aug 2024 16:11:15 -0400 Subject: [PATCH] More build fixes. --- .../create_community.ts | 15 ++++++++------- packages/commonwealth/server/passport/magic.ts | 1 + .../commonwealth/server/routes/createAddress.ts | 1 + .../routes/linkExistingAddressToCommunity.ts | 1 + .../server/util/sanitizeDeletedComment.ts | 1 + 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/packages/commonwealth/server/controllers/server_communities_methods/create_community.ts b/packages/commonwealth/server/controllers/server_communities_methods/create_community.ts index 3489d16f4a8..c092af02507 100644 --- a/packages/commonwealth/server/controllers/server_communities_methods/create_community.ts +++ b/packages/commonwealth/server/controllers/server_communities_methods/create_community.ts @@ -327,13 +327,13 @@ export async function __createCommunity( base === ChainBase.CosmosSDK ? BalanceType.Cosmos : base === ChainBase.Substrate - ? BalanceType.Substrate - : base === ChainBase.Ethereum - ? BalanceType.Ethereum - : // beyond here should never really happen, but just to make sure... - base === ChainBase.Solana - ? BalanceType.Solana - : undefined, + ? BalanceType.Substrate + : base === ChainBase.Ethereum + ? BalanceType.Ethereum + : // beyond here should never really happen, but just to make sure... + base === ChainBase.Solana + ? BalanceType.Solana + : undefined, // use first chain name as node name name: community.name, }, @@ -486,6 +486,7 @@ export async function __createCommunity( role: 'admin', last_active: new Date(), ghost_address: false, + is_banned: false, }); await this.models.Subscription.findOrCreate({ diff --git a/packages/commonwealth/server/passport/magic.ts b/packages/commonwealth/server/passport/magic.ts index 68354e3f599..95e526d0b2e 100644 --- a/packages/commonwealth/server/passport/magic.ts +++ b/packages/commonwealth/server/passport/magic.ts @@ -74,6 +74,7 @@ async function createMagicAddressInstances( role: 'member', is_user_default: false, ghost_address: false, + is_banned: false, }, transaction: t, }); diff --git a/packages/commonwealth/server/routes/createAddress.ts b/packages/commonwealth/server/routes/createAddress.ts index 0d7e18004b8..b8411d0b065 100644 --- a/packages/commonwealth/server/routes/createAddress.ts +++ b/packages/commonwealth/server/routes/createAddress.ts @@ -215,6 +215,7 @@ const createAddress = async ( role: 'member', is_user_default: false, ghost_address: false, + is_banned: false, }, { transaction }, ); diff --git a/packages/commonwealth/server/routes/linkExistingAddressToCommunity.ts b/packages/commonwealth/server/routes/linkExistingAddressToCommunity.ts index 872f207631e..83e29946b37 100644 --- a/packages/commonwealth/server/routes/linkExistingAddressToCommunity.ts +++ b/packages/commonwealth/server/routes/linkExistingAddressToCommunity.ts @@ -170,6 +170,7 @@ const linkExistingAddressToCommunity = async ( role: 'member', is_user_default: false, ghost_address: false, + is_banned: false, }, { transaction }, ); diff --git a/packages/commonwealth/server/util/sanitizeDeletedComment.ts b/packages/commonwealth/server/util/sanitizeDeletedComment.ts index c9e83fb6f86..2a42d32187a 100644 --- a/packages/commonwealth/server/util/sanitizeDeletedComment.ts +++ b/packages/commonwealth/server/util/sanitizeDeletedComment.ts @@ -16,6 +16,7 @@ export function sanitizeDeletedComment( role: 'member', is_user_default: false, ghost_address: false, + is_banned: false, }, address_id: 0, canvas_hash: null,