Update restful set license handler to sent update license event

This commit is contained in:
eeff
2022-03-17 20:34:42 +08:00
parent bb3f53d4da
commit e6f83be677
+8
View File
@@ -98,6 +98,14 @@ static int set_license(const char *lic_str)
if (0 > rename(fname_tmp, LICENSE_PATH)) {
rv = NEU_ERR_EINTERNAL;
goto final;
}
neu_plugin_t *plugin = neu_rest_get_plugin();
rv = neu_plugin_notify_event_update_license(
plugin, neu_plugin_get_event_id(plugin));
if (0 != rv) {
rv = NEU_ERR_EINTERNAL;
}
final: