diff --git a/apps/server/src/webhook.ts b/apps/server/src/webhook.ts index b08395e..f042b58 100644 --- a/apps/server/src/webhook.ts +++ b/apps/server/src/webhook.ts @@ -194,7 +194,7 @@ const dispatchAlert = async ( content = body.card; if (!msgType) msgType = "interactive"; } else { - const { msg_type, token, ...rest } = body; + const { msg_type: _msg_type, token: _token, ...rest } = body; content = rest; if (!msgType) { if (body.post) msgType = "post"; @@ -529,7 +529,7 @@ webhook.post("/:token/dm", async (c) => { msgType = "share_user"; content = { user_id: body.user_id }; } else { - const { msg_type, token, ...rest } = body; + const { msg_type: _msg_type, token: _token, ...rest } = body; content = rest; if (!msgType || msgType === "text") { msgType = "text";