fix: rename model

This commit is contained in:
hamster1963
2024-11-28 14:49:38 +08:00
parent ee9419cccc
commit 5f2e9fe38a
10 changed files with 28 additions and 107 deletions

View File

@@ -1,4 +1,4 @@
import { NezhaAPIResponse } from "@/types/nezha-api";
import { NezhaWebsocketResponse } from "@/types/nezha-api";
import ServerCard from "@/components/ServerCard";
import { formatNezhaInfo } from "@/lib/utils";
import ServerOverview from "@/components/ServerOverview";
@@ -41,7 +41,7 @@ export default function Servers() {
}
const nezhaWsData = lastMessage
? (JSON.parse(lastMessage.data) as NezhaAPIResponse)
? (JSON.parse(lastMessage.data) as NezhaWebsocketResponse)
: null;
if (!nezhaWsData) {