Skip to content

Commit

Permalink
refactor: uncomment feature guard (#5676)
Browse files Browse the repository at this point in the history
  • Loading branch information
gao-sun authored Apr 11, 2024
1 parent dd08efe commit c1c91b6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/core/src/routes/organization/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -239,11 +238,7 @@ export default function organizationRoutes<T extends AuthedRouter>(...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());
Expand Down

0 comments on commit c1c91b6

Please sign in to comment.