2
1
mirror of https://github.com/Thream/api.git synced 2024-07-06 21:00:11 +02:00

fix: no default for user settings so if not specified it saves the current value

This commit is contained in:
Divlo 2022-04-08 23:05:58 +00:00
parent fb60e4da19
commit b13bd6a85e
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9

View File

@ -8,10 +8,10 @@ export const themes = [Type.Literal('light'), Type.Literal('dark')]
export const userSettingsSchema = {
id,
language: Type.Union(languages, { default: 'en' }),
theme: Type.Union(themes, { default: 'dark' }),
isPublicEmail: Type.Boolean({ default: false }),
isPublicGuilds: Type.Boolean({ default: false }),
language: Type.Union(languages),
theme: Type.Union(themes),
isPublicEmail: Type.Boolean(),
isPublicGuilds: Type.Boolean(),
createdAt: date.createdAt,
updatedAt: date.updatedAt,
userId: id