From 790e4361dc7c8a94e7edbecbe9790b8c5c855e0a Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 13 Sep 2022 21:38:02 -0700 Subject: [PATCH] fix: :bug: motd --- packages/backend/src/server/web/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/web/index.ts b/packages/backend/src/server/web/index.ts index 8dedae5b3b..c81506384c 100644 --- a/packages/backend/src/server/web/index.ts +++ b/packages/backend/src/server/web/index.ts @@ -534,7 +534,7 @@ router.get('(.*)', async ctx => { icon: meta.iconUrl, splashIcon: splashIconUrl, themeColor: meta.themeColor, - randomMOTD: motd, + randomMOTD: motd[Math.floor(Math.random() * motd.length)], privateMode: meta.privateMode, }); ctx.set('Cache-Control', 'public, max-age=3');