This commit is contained in:
syuilo 2018-11-04 23:13:35 +09:00
parent 947b0f55a3
commit 20fcefb5f4

View File

@ -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;