Commit 23745227 authored by nanahira's avatar nanahira

fix when meta missing

parent 64b0b7c6
...@@ -69,6 +69,9 @@ function schemaOptionsFromClass<T>(cl: ClassType<T>): SchemaOptionsDict<T> { ...@@ -69,6 +69,9 @@ function schemaOptionsFromClass<T>(cl: ClassType<T>): SchemaOptionsDict<T> {
const result: SchemaOptionsDict<T> = {}; const result: SchemaOptionsDict<T> = {};
for (const key of keys) { for (const key of keys) {
const option = reflector.get('SchemaMeta', cl, key); const option = reflector.get('SchemaMeta', cl, key);
if (!option) {
continue;
}
result[key] = option; result[key] = option;
} }
return result; return result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment