Skip to content

Commit 58ddfa6

Browse files
committed
modify: app import 수정
1 parent 40d531a commit 58ddfa6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/app.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import router from '@/routes';
1111
import { NotFoundError } from '@/exception';
1212

1313
import { options } from '@/configs/swagger.config';
14-
import { initSentry } from '@/configs/sentry.config';
15-
import { initCache } from '@/configs/cache.config';
14+
import { initSentry, getSentryStatus } from '@/configs/sentry.config';
15+
import { initCache, getCacheStatus } from '@/configs/cache.config';
1616
import { errorHandlingMiddleware } from '@/middlewares/errorHandling.middleware';
1717

1818
dotenv.config();
@@ -58,7 +58,6 @@ app.get('/health', async (req: Request, res: Response) => {
5858

5959
// Sentry 상태 확인
6060
try {
61-
const { getSentryStatus } = await import('./configs/sentry.config.ts');
6261
healthData.services.sentry = getSentryStatus();
6362
} catch (error) {
6463
healthData.services.sentry = false;
@@ -67,7 +66,6 @@ app.get('/health', async (req: Request, res: Response) => {
6766

6867
// Cache 상태 확인
6968
try {
70-
const { getCacheStatus } = await import('./configs/cache.config.ts');
7169
healthData.services.cache = await getCacheStatus();
7270
} catch (error) {
7371
healthData.services.cache = false;

0 commit comments

Comments
 (0)