Skip to content

Commit

Permalink
More build fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnaviask committed Aug 26, 2024
1 parent 279c9a1 commit e7b87b8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down Expand Up @@ -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({
Expand Down
1 change: 1 addition & 0 deletions packages/commonwealth/server/passport/magic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ async function createMagicAddressInstances(
role: 'member',
is_user_default: false,
ghost_address: false,
is_banned: false,
},
transaction: t,
});
Expand Down
1 change: 1 addition & 0 deletions packages/commonwealth/server/routes/createAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ const createAddress = async (
role: 'member',
is_user_default: false,
ghost_address: false,
is_banned: false,
},
{ transaction },
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ const linkExistingAddressToCommunity = async (
role: 'member',
is_user_default: false,
ghost_address: false,
is_banned: false,
},
{ transaction },
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e7b87b8

Please sign in to comment.