mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Updated add team website form.
This commit is contained in:
parent
c990459238
commit
a14e11bae2
18 changed files with 149 additions and 129 deletions
|
|
@ -88,7 +88,7 @@ export const useValidate = async (schema, req, res) => {
|
|||
const rules = schema[req.method];
|
||||
|
||||
if (rules) {
|
||||
rules.validateSync(req.method === 'GET' ? { ...req.query } : { ...req.body });
|
||||
rules.validateSync({ ...req.query, ...req.body });
|
||||
}
|
||||
} catch (e: any) {
|
||||
return badRequest(res, e.message);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue