2 Commits

3 changed files with 7 additions and 7 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@thream/api", "name": "@thream/api",
"version": "1.0.0", "version": "1.0.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@thream/api", "name": "@thream/api",
"version": "1.0.0", "version": "1.0.1",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@prisma/client": "3.12.0", "@prisma/client": "3.12.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "@thream/api", "name": "@thream/api",
"version": "1.0.0", "version": "1.0.1",
"description": "Thream's application programming interface to stay close with your friends and communities.", "description": "Thream's application programming interface to stay close with your friends and communities.",
"private": true, "private": true,
"type": "module", "type": "module",

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