summary refs log tree commit diff
path: root/api/src/util/route.ts
diff options
context:
space:
mode:
authorChris Chrome <christophercookman@gmail.com>2021-09-20 11:29:37 -0400
committerChris Chrome <christophercookman@gmail.com>2021-09-20 11:29:37 -0400
commit013a4b8bc8d50b0df21381628bfe61db4ef927f6 (patch)
treeeae7e96bf69c294bc926bc5d2adeb5121209da9e /api/src/util/route.ts
parentDelete messages before deleting channel (diff)
downloadserver-013a4b8bc8d50b0df21381628bfe61db4ef927f6.tar.xz
Fix one thing, another problem pops up
Co-authored-by: TheArcaneBrony <myrainbowdash949@gmail.com>
Diffstat (limited to '')
-rw-r--r--api/src/util/route.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/src/util/route.ts b/api/src/util/route.ts
index 678ca64c..b7e6296b 100644
--- a/api/src/util/route.ts
+++ b/api/src/util/route.ts
@@ -14,6 +14,7 @@ export const ajv = new Ajv({
 	parseDate: true,
 	allowDate: true,
 	schemas,
+	coerceTypes: true,
 	messages: true,
 	strict: true,
 	strictRequired: true