feat(project):add has_monitor

This commit is contained in:
shahzeydyfah
2025-01-10 19:35:39 +03:30
parent 74bdeaab61
commit a83d979a54
+2 -1
View File
@@ -54,7 +54,8 @@ class ProjectRepository(BaseRepository[ProjectModel]):
update.design.code = 'D' + code
if update.monitor:
update.monitor.code = 'S' + code
update.has_monitor = True
if update.monitor:
update.has_monitor = True
update.u_at()
await use_collection(COLLECTION).update_one({"_id":_id},{"$set":update.mongo_dict()})
return await self.get(_id)