fix: lint

Signed-off-by: d0zingcat <iamtangli42@gmail.com>
This commit is contained in:
2026-02-09 15:01:43 +08:00
parent 0bdd4f4213
commit 25b0ab7fea

View File

@@ -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";