From bd8e0ef3d22e84e15f5cb30881664c58d054a16d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E6=99=93=E6=B5=A9?= <1923911906@qq.com> Date: Sun, 2 Jun 2024 16:22:55 +0800 Subject: [PATCH] fix --- packages/web-chat-x-express/src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web-chat-x-express/src/main.ts b/packages/web-chat-x-express/src/main.ts index 36f8e0e..131b483 100644 --- a/packages/web-chat-x-express/src/main.ts +++ b/packages/web-chat-x-express/src/main.ts @@ -12,8 +12,8 @@ app.use(morgan("combined")); import client from "prom-client"; app.get("/metrics", async (_, res) => { return res - .send(await client.register.metrics()) - .type(client.register.contentType); + .type(client.register.contentType) + .send(await client.register.metrics()); }); const server = app.listen(port, () => { console.log(`webrtc-peer-express app listen on http://localhost:${port}`);