fix:design progress
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user