feat(project):add sts

This commit is contained in:
shahzeydyfah
2024-03-14 14:52:02 +03:30
parent ebb63de1e8
commit d9a9f09bf3
2 changed files with 12 additions and 1 deletions
+4
View File
@@ -54,6 +54,10 @@ class DesignProgressRepository(BaseRepository[CreateDesignProgress]):
await use_collection(COLLECTION).update_one({"_id":_id},{"$set": {
"start_at":start_at,"complete_at":_inp.complete_at
}})
if design_progress.type == 1:
await use_collection('project').update_one({"_id":design_progress.project_id},{"$set":{"sts":2}})
elif design_progress.type == 7:
await use_collection('project').update_one({"_id": design_progress.project_id}, {"$set": {"sts": 4}})
get_record = GetRecord(
project_id=design_progress.project_id,
type=design_progress.type,