Skip to content

Commit

Permalink
Merge pull request linkwarden#859 from linkwarden/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
daniel31x13 authored Nov 14, 2024
2 parents 6aa0fa9 + 1a949ec commit 95dddd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/shared/schemaValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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]>",
Expand Down

0 comments on commit 95dddd7

Please sign in to comment.