added missing typeof

This commit is contained in:
srgooglo 2021-07-08 12:31:40 +02:00
parent f5ade5c5e9
commit 5bd9c15803

View File

@ -104,7 +104,7 @@ class Server {
if (typeof endpoint.middleware !== "undefined") {
let query = []
if (endpoint.middleware === "string") {
if (typeof endpoint.middleware === "string") {
query.push(endpoint.middleware)
}
if (Array.isArray(endpoint.middleware)) {