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