From 3332836aa4e8563c4b713df76cf46a09e2019832 Mon Sep 17 00:00:00 2001 From: sup39 Date: Wed, 27 Dec 2023 17:16:47 +0900 Subject: [PATCH] fix: profile update api schema to allow null language field --- packages/backend/src/server/api/endpoints/i/update.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/i/update.ts b/packages/backend/src/server/api/endpoints/i/update.ts index c438a33c..2fd10ede 100644 --- a/packages/backend/src/server/api/endpoints/i/update.ts +++ b/packages/backend/src/server/api/endpoints/i/update.ts @@ -90,7 +90,7 @@ export const paramDef = { birthday: { ...Users.birthdaySchema, nullable: true }, lang: { type: "string", - enum: Object.keys(langmap), + enum: [...Object.keys(langmap), null], nullable: true, }, avatarId: { type: "string", format: "misskey:id", nullable: true },