From 2e6f1c207c2b0d57477c19f985adca32544afd7b Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Thu, 14 Nov 2024 15:43:37 -0500 Subject: [PATCH 1/2] bug fixed --- docker-compose.yml | 4 ++-- lib/shared/schemaValidation.ts | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 63a8740..0be7157 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,8 +11,8 @@ services: environment: - DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres restart: always - # build: . # uncomment this line to build from source - image: ghcr.io/linkwarden/linkwarden:latest # comment 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 ports: - 3000:3000 volumes: diff --git a/lib/shared/schemaValidation.ts b/lib/shared/schemaValidation.ts index 2821b97..11d6b92 100644 --- a/lib/shared/schemaValidation.ts +++ b/lib/shared/schemaValidation.ts @@ -37,7 +37,7 @@ export const PostUserSchema = () => { password: z.string().min(8).max(2048).optional(), email: emailEnabled ? z.string().trim().email().toLowerCase() - : z.string().optional(), + : z.string().nullish(), username: emailEnabled ? z.string().optional() : z @@ -59,7 +59,7 @@ export const UpdateUserSchema = () => { name: z.string().trim().min(1).max(50).optional(), email: emailEnabled ? z.string().trim().email().toLowerCase() - : z.string().optional(), + : z.string().nullish(), username: z .string() .trim() diff --git a/package.json b/package.json index f4d7015..9d2b799 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "linkwarden", - "version": "v2.8.2", + "version": "v2.8.3", "main": "index.js", "repository": "https://github.com/linkwarden/linkwarden.git", "author": "Daniel31X13 ", From 1a949ecdc6b4ced566f237f7f36af1f1f704346c Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Thu, 14 Nov 2024 15:44:31 -0500 Subject: [PATCH 2/2] bug fix --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0be7157..63a8740 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,8 +11,8 @@ services: environment: - DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres restart: always - build: . # uncomment this line to build from source - # image: ghcr.io/linkwarden/linkwarden:latest # comment 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 ports: - 3000:3000 volumes: