Repository: louislam/uptime-kuma
File: server/notification-providers/feishu.js (JavaScript)

Code before:
    name = "Feishu";

    async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
        let okMsg = "Sent Successfully.";
        let feishuWebHookUrl = notification.feishuWebHookUrl;

        try {
            if (heartbeatJSON == null) {
                let testdata = {
                    msg_type: "text",
                    content: {
                        text: msg,
                    },
                };
                await axios.post(feishuWebHookUrl, testdata);
                return okMsg;
            }

            if (heartbeatJSON["status"] == DOWN) {
                let downdata = {
                    msg_type: "post",
                    content: {
                        post: {
                            zh_cn: {
                                title:
                                    "UptimeKuma Alert: " + monitorJSON["name"],
                                content: [
                                    [
                                        {
                                            tag: "text",
                                            text:
                                                "[Down] " +
                                                heartbeatJSON["msg"] +
                                                "\nTime (UTC): " +
                                                heartbeatJSON["time"],
                                        },
                                    ],
                                ],
                            },
                        },
                    },
                };
                await axios.post(feishuWebHookUrl, downdata);
                return okMsg;
            }

            if (heartbeatJSON["status"] == UP) {
                let updata = {
                    msg_type: "post",
                    content: {
                        post: {

Review comment (suggestion):
```suggestion
                                title: "UptimeKuma Alert: " + monitorJSON["name"],
```

Code after:
    name = "Feishu";

    async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
        let okMsg = "Sent Successfully.";
        let feishuWebHookUrl = notification.feishuWebHookUrl;

        try {
            if (heartbeatJSON == null) {
                let testdata = {
                    msg_type: "text",
                    content: {
                        text: msg,
                    },
                };
                await axios.post(feishuWebHookUrl, testdata);
                return okMsg;
            }

            if (heartbeatJSON["status"] == DOWN) {
                let downdata = {
                    msg_type: "post",
                    content: {
                        post: {
                            zh_cn: {
                                title: "UptimeKuma Alert: " + monitorJSON["name"],
                                content: [
                                    [
                                        {
                                            tag: "text",
                                            text:
                                                "[Down] " +
                                                heartbeatJSON["msg"] +
                                                "\nTime (UTC): " +
                                                heartbeatJSON["time"],
                                        },
                                    ],
                                ],
                            },
                        },
                    },
                };
                await axios.post(feishuWebHookUrl, downdata);
                return okMsg;
            }

            if (heartbeatJSON["status"] == UP) {
                let updata = {
                    msg_type: "post",
                    content: {
                        post: {
                            zh_cn: {