|
|
@ -59,11 +59,8 @@ export default class Plugin implements PluginType { |
|
|
|
public static async update(pluginId: string, plugin: Partial<PluginType>) { |
|
|
|
public static async update(pluginId: string, plugin: Partial<PluginType>) { |
|
|
|
const updateObj = extractProps(plugin, ['input', 'active']); |
|
|
|
const updateObj = extractProps(plugin, ['input', 'active']); |
|
|
|
|
|
|
|
|
|
|
|
if (updateObj.input) { |
|
|
|
if (updateObj.input && typeof updateObj.input === 'object') { |
|
|
|
updateObj.input = |
|
|
|
updateObj.input = JSON.stringify(updateObj.input); |
|
|
|
updateObj.input && typeof updateObj.input === 'object' |
|
|
|
|
|
|
|
? JSON.stringify(updateObj.input) |
|
|
|
|
|
|
|
: updateObj.input; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// get existing cache
|
|
|
|
// get existing cache
|
|
|
|