Browse Source

fix: initialize site with customized icon and icon_background (#5227)

kurokobo 10 months ago
parent
commit
0391282b5e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      api/events/event_handlers/create_site_record_when_app_created.py

+ 2 - 0
api/events/event_handlers/create_site_record_when_app_created.py

@@ -11,6 +11,8 @@ def handle(sender, **kwargs):
     site = Site(
         app_id=app.id,
         title=app.name,
+        icon = app.icon,
+        icon_background = app.icon_background,
         default_language=account.interface_language,
         customize_token_strategy='not_allow',
         code=Site.generate_code(16)