Skip to content

Commit 5002eff

Browse files
committed
fix: 오류가 발생할 수 있는 경우 제거
1 parent fe71429 commit 5002eff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/controllers/webhook.controller.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export class WebhookController {
88
'unresolved': '🔴',
99
'resolved': '✅',
1010
'ignored': '🔇',
11-
'archived': '📦',
1211
} as const;
1312

1413
handleSentryWebhook: RequestHandler = async (
@@ -18,7 +17,9 @@ export class WebhookController {
1817
): Promise<void> => {
1918
try {
2019
if (!req.body || typeof req.body !== 'object' || req.body.action !== "created") {
21-
res.status(400).json(new EmptyResponseDto(true, 'Sentry 웹훅 처리에 실패했습니다', {}, null));
20+
const response = new EmptyResponseDto(true, 'Sentry 웹훅 처리에 실패했습니다', {}, null);
21+
res.status(400).json(response);
22+
return;
2223
}
2324

2425
const sentryData: SentryWebhookData = req.body;

0 commit comments

Comments
 (0)