mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 00:49:17 +09:00
[API] Fix #3099
This commit is contained in:
parent
1855ab60f1
commit
4f3c8b940e
@ -40,7 +40,7 @@ function getParams<T extends IEndpointMeta>(defs: T, params: any): [Params<T>, E
|
||||
(err as any).param = k;
|
||||
return true;
|
||||
} else {
|
||||
if (v === undefined && def.default) {
|
||||
if (v === undefined && def.hasOwnProperty('default')) {
|
||||
x[k] = def.default;
|
||||
} else {
|
||||
x[k] = v;
|
||||
|
Loading…
Reference in New Issue
Block a user