diff --git a/apps/server/src/collaboration/server/collab-app.module.ts b/apps/server/src/collaboration/server/collab-app.module.ts index 5f3ddcbb..08a2f688 100644 --- a/apps/server/src/collaboration/server/collab-app.module.ts +++ b/apps/server/src/collaboration/server/collab-app.module.ts @@ -20,7 +20,7 @@ import { CollaborationController } from './collaboration.controller'; ], controllers: [ AppController, - ...(process.env.COLLAB_SHOW_STATS.toLowerCase() === 'true' + ...(process.env.COLLAB_SHOW_STATS?.toLowerCase() === 'true' ? [CollaborationController] : []), ],