diff --git a/lyrebird/config/__init__.py b/lyrebird/config/__init__.py index d95f8f601..03505d3e7 100644 --- a/lyrebird/config/__init__.py +++ b/lyrebird/config/__init__.py @@ -100,10 +100,10 @@ def override_config_field(self, update_conf: dict): if forbidden_modify_fields: raise ConfigException(f'Config field cannot be modified: {forbidden_modify_fields}') - self.add_config(update_conf, type='api_patch', apply_now=True) + update_level = self.config.get('config.update_config.level', 1) logger.debug(f'Need update config fields: {update_conf}') - self.config.update(update_conf) + self.add_config(update_conf, type='api_patch', level=update_level, apply_now=True) logger.debug(f'Update done. config: {self.config}') application.server['event'].publish('config_update', {'config_update' : {'data': update_conf}}) diff --git a/lyrebird/version.py b/lyrebird/version.py index 869b45fc4..835c829fc 100644 --- a/lyrebird/version.py +++ b/lyrebird/version.py @@ -1,3 +1,3 @@ -IVERSION = (2, 25, 4) +IVERSION = (2, 25, 5) VERSION = ".".join(str(i) for i in IVERSION) LYREBIRD = "Lyrebird " + VERSION