fix: profile update api schema to allow null language field

This commit is contained in:
sup39 2023-12-27 17:16:47 +09:00
parent 07c905c33e
commit 3332836aa4
Signed by: sup39
GPG key ID: 111C00916C1641E5

View file

@ -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 },