added nullable params to website

This commit is contained in:
Omer Sabic 2024-06-07 21:34:52 +02:00
parent 89f44aad7d
commit 48bae83521

View File

@ -307,18 +307,18 @@ export const dashboardRoutes = (fastify, _, done) => {
type: "boolean" type: "boolean"
}, },
freebie_name: { freebie_name: {
type: "string" type: ["string", "null"]
}, },
freebie_url: { freebie_url: {
type: "string", type: ["string", "null"],
format: "uri" format: "uri"
}, },
freebie_image_url: { freebie_image_url: {
type: "string", type: ["string", "null"],
format: "uri" format: "uri"
}, },
freebie_text: { freebie_text: {
type: "string", type: ["string", "null"]
}, },
title: { title: {
type: "string", type: "string",
@ -327,7 +327,7 @@ export const dashboardRoutes = (fastify, _, done) => {
type: "string", type: "string",
}, },
domain: { domain: {
type: "string" type: ["string", "null"]
} }
}, },
required: ["id"] required: ["id"]