bug fixed

This commit is contained in:
daniel31x13 2024-11-14 15:43:37 -05:00
parent 8677df0340
commit 2e6f1c207c
3 changed files with 5 additions and 5 deletions

View File

@ -11,8 +11,8 @@ services:
environment: environment:
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres - DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres
restart: always restart: always
# build: . # uncomment this line to build from source build: . # uncomment this line to build from source
image: ghcr.io/linkwarden/linkwarden:latest # comment this line to build from source # image: ghcr.io/linkwarden/linkwarden:latest # comment this line to build from source
ports: ports:
- 3000:3000 - 3000:3000
volumes: volumes:

View File

@ -37,7 +37,7 @@ export const PostUserSchema = () => {
password: z.string().min(8).max(2048).optional(), password: z.string().min(8).max(2048).optional(),
email: emailEnabled email: emailEnabled
? z.string().trim().email().toLowerCase() ? z.string().trim().email().toLowerCase()
: z.string().optional(), : z.string().nullish(),
username: emailEnabled username: emailEnabled
? z.string().optional() ? z.string().optional()
: z : z
@ -59,7 +59,7 @@ export const UpdateUserSchema = () => {
name: z.string().trim().min(1).max(50).optional(), name: z.string().trim().min(1).max(50).optional(),
email: emailEnabled email: emailEnabled
? z.string().trim().email().toLowerCase() ? z.string().trim().email().toLowerCase()
: z.string().optional(), : z.string().nullish(),
username: z username: z
.string() .string()
.trim() .trim()

View File

@ -1,6 +1,6 @@
{ {
"name": "linkwarden", "name": "linkwarden",
"version": "v2.8.2", "version": "v2.8.3",
"main": "index.js", "main": "index.js",
"repository": "https://github.com/linkwarden/linkwarden.git", "repository": "https://github.com/linkwarden/linkwarden.git",
"author": "Daniel31X13 <daniel31x13@gmail.com>", "author": "Daniel31X13 <daniel31x13@gmail.com>",