feat(register status):add

This commit is contained in:
shahzeydyfah
2024-03-16 06:57:04 +03:30
parent d95d4485e1
commit 0b6d3debe3
+4 -1
View File
@@ -12,4 +12,7 @@ class RegisterStatusRepository(BaseRepository[RegisterStatusModel]):
async def get_last(self,project_id:uuid.UUID):
last = await use_collection(TaskEnv.CLN_AUDIT_STATUS).find({"project_id":project_id}).sort('$natural', -1).to_list(1)
return last
if last:
return last[0]['number']
else:
return None