feat:add list contract by project_id
This commit is contained in:
@@ -61,3 +61,8 @@ class ContractRepository(BaseRepository):
|
||||
}
|
||||
},return_document=ReturnDocument.AFTER)
|
||||
return result
|
||||
async def get_list(self,project_id:uuid.UUID):
|
||||
contract = await use_collection(TaskEnv.CLN_CONTRACT).find(
|
||||
{"project_id": project_id}
|
||||
).to_list(None)
|
||||
return contract
|
||||
|
||||
Reference in New Issue
Block a user