feat:add list contract by project_id

This commit is contained in:
shahzeydyfah
2024-06-15 00:14:36 +03:30
parent 801742d466
commit 1aedfc818c
2 changed files with 11 additions and 0 deletions
+5
View File
@@ -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