From 9b26937a057c47a3320140a57cedbbec7500752d Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 11 Jul 2021 23:23:11 +0100 Subject: [PATCH] API: These fields should not be optional. --- src/api/routes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/routes.ts b/src/api/routes.ts index f0677374..4587201a 100644 --- a/src/api/routes.ts +++ b/src/api/routes.ts @@ -182,8 +182,8 @@ type Routes = method: 'PATCH', route: `/users/${Id}/username`, data: { - username?: string, - password?: string + username: string, + password: string }, response: undefined }