From c1c91b6ab828edaa84117b68719a2c37ad408e69 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Thu, 11 Apr 2024 09:22:45 +0800 Subject: [PATCH] refactor: uncomment feature guard (#5676) --- packages/core/src/routes/organization/index.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/core/src/routes/organization/index.ts b/packages/core/src/routes/organization/index.ts index d3ea6ce91..39d69fc85 100644 --- a/packages/core/src/routes/organization/index.ts +++ b/packages/core/src/routes/organization/index.ts @@ -8,7 +8,6 @@ import { import { yes } from '@silverhand/essentials'; import { z } from 'zod'; -import { EnvSet } from '#src/env-set/index.js'; import RequestError from '#src/errors/RequestError/index.js'; import koaGuard from '#src/middleware/koa-guard.js'; import koaPagination from '#src/middleware/koa-pagination.js'; @@ -239,11 +238,7 @@ export default function organizationRoutes(...args: Rout // MARK: Mount sub-routes organizationRoleRoutes(...args); organizationScopeRoutes(...args); - - // FIXME: @gao-sun - if (EnvSet.values.isDevFeaturesEnabled) { - organizationInvitationRoutes(...args); - } + organizationInvitationRoutes(...args); // Add routes to the router originalRouter.use(router.routes());