Skip to content

Commit

Permalink
[DJ] [Gitar] Updating TypeScript files
Browse files Browse the repository at this point in the history
  • Loading branch information
Gitar committed Sep 18, 2024
1 parent 14ff13f commit c61125b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
5 changes: 2 additions & 3 deletions src/lib/features/project/project-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,8 @@ export default class ProjectService {
query?: IProjectQuery,
userId?: number,
): Promise<TransitionalProjectData[]> {
const getProjects = this.flagResolver.isEnabled('useProjectReadModel')
? () => this.projectReadModel.getProjectsForAdminUi(query, userId)
: () => this.projectStore.getProjectsWithCounts(query, userId);
const getProjects = () =>
this.projectStore.getProjectsWithCounts(query, userId);

const projects = await getProjects();

Expand Down
5 changes: 0 additions & 5 deletions src/lib/types/experimental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export type IFlagKey =
| 'newEventSearch'
| 'archiveProjects'
| 'projectListImprovements'
| 'useProjectReadModel'
| 'addonUsageMetrics'
| 'onboardingMetrics'
| 'onboardingUI'
Expand Down Expand Up @@ -292,10 +291,6 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_PROJECT_LIST_IMPROVEMENTS,
false,
),
useProjectReadModel: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_USE_PROJECT_READ_MODEL,
false,
),
addonUsageMetrics: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_ADDON_USAGE_METRICS,
false,
Expand Down
1 change: 0 additions & 1 deletion src/server-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ process.nextTick(async () => {
originMiddleware: true,
newEventSearch: true,
projectListImprovements: true,
useProjectReadModel: true,
addonUsageMetrics: true,
onboardingMetrics: true,
onboardingUI: true,
Expand Down

0 comments on commit c61125b

Please sign in to comment.