From c2a0773633cf389a880c7e9edf1b99f0f08238f4 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Thu, 4 Jun 2020 00:32:58 -0400 Subject: [PATCH] fix: site config host slice --- server/graph/resolvers/site.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/graph/resolvers/site.js b/server/graph/resolvers/site.js index cf6a6abb..bbbc2430 100644 --- a/server/graph/resolvers/site.js +++ b/server/graph/resolvers/site.js @@ -32,7 +32,7 @@ module.exports = { if (args.host) { let siteHost = _.trim(args.host) if (siteHost.endsWith('/')) { - siteHost = siteHost.splice(0, -1) + siteHost = siteHost.slice(0, -1) } WIKI.config.host = siteHost }