mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-30 05:47:46 -07:00
[API] Fix #3099
This commit is contained in:
parent
947b0f55a3
commit
20fcefb5f4
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ function getParams<T extends IEndpointMeta>(defs: T, params: any): [Params<T>, E
|
||||||
(err as any).param = k;
|
(err as any).param = k;
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
if (v === undefined && def.default) {
|
if (v === undefined && def.hasOwnProperty('default')) {
|
||||||
x[k] = def.default;
|
x[k] = def.default;
|
||||||
} else {
|
} else {
|
||||||
x[k] = v;
|
x[k] = v;
|
||||||
|
|
Loading…
Reference in a new issue