feat(config):add domain
This commit is contained in:
@@ -208,6 +208,14 @@ class ProjectRepository(BaseRepository[ProjectModel]):
|
||||
|
||||
return True
|
||||
|
||||
async def getList(self, state: str='null'):
|
||||
if not state == 'null':
|
||||
projects = await use_collection(TaskEnv.CLN_PROJECT).find({"sts": 1,"design.state":state }).to_list(None)
|
||||
else:
|
||||
projects = await use_collection(TaskEnv.CLN_PROJECT).find({"sts": 1}).to_list(None)
|
||||
|
||||
return projects
|
||||
|
||||
async def fetch_delete(self, _input: TableEngineRequestType) -> TableEngineExport[T]:
|
||||
return await NewTableEngine.mongo(
|
||||
query_class=use_collection(self.COLLECTION),
|
||||
|
||||
Reference in New Issue
Block a user