|
|
@ -230,13 +230,16 @@ export default class Model implements TableType { |
|
|
|
model.meta = parseMetaProp(model); |
|
|
|
model.meta = parseMetaProp(model); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
await NocoCache.setList( |
|
|
|
// set cache based on source_id presence
|
|
|
|
CacheScope.MODEL, |
|
|
|
if (source_id) { |
|
|
|
[base_id, source_id], |
|
|
|
await NocoCache.setList( |
|
|
|
modelList, |
|
|
|
CacheScope.MODEL, |
|
|
|
); |
|
|
|
[base_id, source_id], |
|
|
|
|
|
|
|
modelList, |
|
|
|
await NocoCache.setList(CacheScope.MODEL, [base_id], modelList); |
|
|
|
); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
await NocoCache.setList(CacheScope.MODEL, [base_id], modelList); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
modelList.sort( |
|
|
|
modelList.sort( |
|
|
|
(a, b) => |
|
|
|
(a, b) => |
|
|
|