Fix import plugin hook

This commit is contained in:
Gregory Schier
2024-07-21 15:46:47 -07:00
parent eb782353a0
commit a684d71033
2 changed files with 14 additions and 15 deletions

View File

@@ -31,7 +31,7 @@ class PluginRuntimeService implements PluginRuntimeServiceImplementation {
const plugins = await this.#manager.pluginsWith('import');
for (const p of plugins) {
const data = await p.runImport(request.data);
if (data != 'null') {
if (data != null && data !== 'null') {
const info = { plugin: (await p.getInfo()).name };
return { info, data };
}