修复url不存在问题
This commit is contained in:
parent
efd6511580
commit
48261eea10
@ -100,4 +100,4 @@
|
|||||||
},
|
},
|
||||||
"sqlite3": "^6.0.1"
|
"sqlite3": "^6.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,7 +23,7 @@ export default router.post(
|
|||||||
"/",
|
"/",
|
||||||
validateFields({
|
validateFields({
|
||||||
source: z.enum(["toonflow", "github", "gitee", "atomgit"]),
|
source: z.enum(["toonflow", "github", "gitee", "atomgit"]),
|
||||||
url: z.url().optional(),
|
url: z.url().nullable().optional(),
|
||||||
}),
|
}),
|
||||||
async (req, res) => {
|
async (req, res) => {
|
||||||
const { source, url } = req.body;
|
const { source, url } = req.body;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user