Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

bug fixed

daniel31x132e6f1c207c2b
diff --git a/docker-compose.yml b/docker-compose.yml
index 63a87403..0be71579 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 2821b978..11d6b92b 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 f4d70159..9d2b7992 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 <[email protected]>",