소스 검색

fix: allow the name and icon of the web app to be set independently of that of the bot itself (#5225)

kurokobo 1 년 전
부모
커밋
ef6034abfd
1개의 변경된 파일0개의 추가작업 그리고 7개의 파일을 삭제
  1. 0 7
      api/controllers/console/app/site.py

+ 0 - 7
api/controllers/console/app/site.py

@@ -65,13 +65,6 @@ class AppSite(Resource):
             if value is not None:
                 setattr(site, attr_name, value)
 
-                if attr_name == 'title':
-                    app_model.name = value
-                elif attr_name == 'icon':
-                    app_model.icon = value
-                elif attr_name == 'icon_background':
-                    app_model.icon_background = value
-
         db.session.commit()
 
         return site