2
1
mirror of https://github.com/Thream/api.git synced 2024-07-21 03:38:31 +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 = { export const userSettingsSchema = {
id, id,
language: Type.Union(languages, { default: 'en' }), language: Type.Union(languages),
theme: Type.Union(themes, { default: 'dark' }), theme: Type.Union(themes),
isPublicEmail: Type.Boolean({ default: false }), isPublicEmail: Type.Boolean(),
isPublicGuilds: Type.Boolean({ default: false }), isPublicGuilds: Type.Boolean(),
createdAt: date.createdAt, createdAt: date.createdAt,
updatedAt: date.updatedAt, updatedAt: date.updatedAt,
userId: id userId: id