Add onMasterConfigFieldChanged hook

Add hook for master plugin code to react to the master config changing.
This commit is contained in:
Hornwitser committed 2022-02-10 10:29:47 +01:00
1 parent a979c0cfac
commit 68b8ac6b8c
3 files changed
+18

No files matched your search

+13
View File
@@ -355,6 +355,19 @@ class BaseMasterPlugin {
*/
async onInstanceStatusChanged(instance, prev) { }
/**
* Called when the value of a master config field changed.
*
* Invoked after the value of the config field given by `field` has
* changed on the master.
*
* @param {module:lib/config.ConfigGroup} group -
* The group who's field got changed on.
* @param {string} field - Name of the field that changed.
* @param {*} prev - The previous value of the field.
*/
async onMasterConfigFieldChanged(group, field, prev) { }
/**
* Called when the value of an instance config field changed.
*