From fddb4efb11b5e7a00a5bfa0bd1a74f1e456704ba Mon Sep 17 00:00:00 2001 From: "f.medini" Date: Sat, 19 Mar 2022 15:18:51 +0100 Subject: [PATCH] Fix errors array concatenation --- src/util/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/helpers.ts b/src/util/helpers.ts index 0c15a71..d256a7b 100644 --- a/src/util/helpers.ts +++ b/src/util/helpers.ts @@ -1,5 +1,5 @@ export function denyOnErrors(...errors: Array) { - const combinedErrors: string[] = [].concat.apply(errors) + const combinedErrors: Array = Array().concat.apply(Array(), errors) if (combinedErrors.length > 0) { deny("Request denied because of the following errors:\n-" + combinedErrors.join("\n-")); }