Change parameter order
This commit is contained in:
@ -36,7 +36,7 @@ export const actions = {
|
||||
|
||||
const name = formName as string;
|
||||
|
||||
if (!safePath(name, storagePath)) {
|
||||
if (!safePath(storagePath, name)) {
|
||||
return fail(400, { field: 'name', name: name, incorrect: true });
|
||||
}
|
||||
// const name = safePath(formName as string);
|
||||
|
Reference in New Issue
Block a user