summary refs log tree commit diff
path: root/src/api/util/handlers/route.ts
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-01-14 13:33:24 +0100
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-01-14 13:33:24 +0100
commit32b93c857f89283f276be5ae2e39c9d11c87fece (patch)
treedf7b4bcd0f375d06f2d5d4333f491680a0973cb6 /src/api/util/handlers/route.ts
parentMove isTextChannel to channel (diff)
downloadserver-32b93c857f89283f276be5ae2e39c9d11c87fece.tar.xz
var -> let
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
Diffstat (limited to 'src/api/util/handlers/route.ts')
-rw-r--r--src/api/util/handlers/route.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/util/handlers/route.ts b/src/api/util/handlers/route.ts

index 5dcae953..a8911613 100644 --- a/src/api/util/handlers/route.ts +++ b/src/api/util/handlers/route.ts
@@ -43,7 +43,7 @@ export interface RouteOptions { } export function route(opts: RouteOptions) { - var validate: AnyValidateFunction<any> | undefined; + let validate: AnyValidateFunction<any> | undefined; if (opts.body) { validate = ajv.getSchema(opts.body); if (!validate) throw new Error(`Body schema ${opts.body} not found`);