|
@@ -142,8 +142,9 @@ export abstract class BaseService<T extends AnyParamConstructor<any>> {
|
|
const refs = [];
|
|
const refs = [];
|
|
for (const key in schema) {
|
|
for (const key in schema) {
|
|
const f = schema[key];
|
|
const f = schema[key];
|
|
- if (_.isObject(f) && _.get(f, 'ref')) {
|
|
|
|
- const model = GetModel(key);
|
|
|
|
|
|
+ const ref = _.get(f, 'ref');
|
|
|
|
+ if (ref) {
|
|
|
|
+ const model = GetModel(ref);
|
|
const path = key;
|
|
const path = key;
|
|
refs.push({ path, model });
|
|
refs.push({ path, model });
|
|
}
|
|
}
|