mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix argument validation for script
This commit is contained in:
1 parent
61597151a8
commit
c43663a1d1
5 files changed
+5
-13
No files matched your search
@@ -76,11 +76,9 @@ export async function run({
|
||||
}
|
||||
|
||||
export const validate = {
|
||||
$or: [
|
||||
{ address: 'string' },
|
||||
{ discuss: ObjectID },
|
||||
{ user: 'number' },
|
||||
],
|
||||
address: 'string?',
|
||||
discuss: 'string?',
|
||||
user: 'number?',
|
||||
dryrun: 'boolean?',
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user