Create feature flag and use hook to display account tab conditionally (#2843)

create feature flag and use hook to display account tab conditionally
This commit is contained in:
bosiraphael
2023-12-05 12:23:18 +01:00
committed by GitHub
parent 72d696ad1b
commit 2dcce31ede
2 changed files with 21 additions and 13 deletions

View File

@ -2,8 +2,6 @@ import { DataSource } from 'typeorm';
const tableName = 'featureFlag';
// import { SeedWorkspaceId } from 'src/database/typeorm-seeds/core/workspaces';
export const seedFeatureFlags = async (
workspaceDataSource: DataSource,
schemaName: string,
@ -20,6 +18,11 @@ export const seedFeatureFlags = async (
workspaceId: workspaceId,
value: true,
},
{
key: 'IS_MESSAGING_ENABLED',
workspaceId: workspaceId,
value: true,
},
])
.execute();
};