feat(project):add has_monitor
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user