fix:design progress

This commit is contained in:
shahzeydyfah
2024-03-23 16:47:10 +03:30
parent a4885b2197
commit ba176340e8
+1 -1
View File
@@ -76,7 +76,7 @@ class DesignProgressRepository(BaseRepository[CreateDesignProgress]):
if get_record.type > 1:
progress = await use_collection(COLLECTION).find_one(
{"project_id": get_record.project_id, "type": int(get_record.type) - 1,
"completed_at": {"$exists": 1},"sub_type":{"$exists":0}})
"complete_at": {"$exists": 1},"sub_type":{"$exists":0}})
if not progress:
return {"exist": True, "detail": 'before type not complete'}
if get_record.type < 7: