From da5dd9edd41f6b0474358b25d237ada53f887b21 Mon Sep 17 00:00:00 2001 From: Timo Schwarzer Date: Sun, 29 Oct 2023 14:00:21 +0100 Subject: [PATCH] Return plain text for the latest community patch version --- src/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index ca37354..eaaf481 100644 --- a/src/index.js +++ b/src/index.js @@ -46,9 +46,7 @@ server.get('/wotw-community-patch/latest', async (req, res) => { path: 'latest-version' })).data.content - return { - motd: Buffer.from(base64Content, 'base64').toString('utf-8'), - } + return Buffer.from(base64Content, 'base64').toString('utf-8').trim() })) })