Reload directus modules after data import
Currently only flows are reloaded. Reload is neccessary, as directus builds a map of valid flow webhooks on startup and does not recognize new flow entries without a 'reload' event.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { getFlowManager } from '@directus/api/flows';
|
||||
import type { HookConfig } from '@directus/extensions';
|
||||
import type { SchemaOverview } from '@directus/types';
|
||||
import { getFlowManager } from '@directus/api/flows';
|
||||
import { condenseAction } from './condenseAction';
|
||||
import { copyConfig } from './copyConfig';
|
||||
import { ExportManager } from './exportManager';
|
||||
@@ -123,6 +124,7 @@ const registerHook: HookConfig = async ({ action, init }, { env, services, datab
|
||||
await updateManager.releaseLock();
|
||||
} finally {
|
||||
await attachExporters();
|
||||
await reloadDirectusModules();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user