|
|
@ -79,8 +79,10 @@ export default class Project implements ProjectType { |
|
|
|
ncMeta = Noco.ncMeta |
|
|
|
ncMeta = Noco.ncMeta |
|
|
|
): Promise<Project[]> { |
|
|
|
): Promise<Project[]> { |
|
|
|
// todo: pagination
|
|
|
|
// todo: pagination
|
|
|
|
let projectList = await NocoCache.getList(CacheScope.PROJECT, []); |
|
|
|
const cachedList = await NocoCache.getList(CacheScope.PROJECT, []); |
|
|
|
if (!projectList.length) { |
|
|
|
let { list: projectList } = cachedList; |
|
|
|
|
|
|
|
const { isEmptyList } = cachedList; |
|
|
|
|
|
|
|
if (!isEmptyList && !projectList.length) { |
|
|
|
projectList = await ncMeta.metaList2(null, null, MetaTable.PROJECT, { |
|
|
|
projectList = await ncMeta.metaList2(null, null, MetaTable.PROJECT, { |
|
|
|
xcCondition: { |
|
|
|
xcCondition: { |
|
|
|
_or: [ |
|
|
|
_or: [ |
|
|
|