mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(core): Show webhook urls for all webhook nodes (no-changelog) (#7783)
This reverts parts of https://github.com/n8n-io/n8n/pull/7113
This commit is contained in:
committed by
GitHub
parent
50f568560f
commit
96fd2c51bd
@@ -26,21 +26,6 @@ function findReferencedMethods(obj, refs = {}, latestName = '') {
|
||||
return refs;
|
||||
}
|
||||
|
||||
function addWebhookLifecycle(nodeType) {
|
||||
if (nodeType.description.webhooks) {
|
||||
nodeType.description.webhooks = nodeType.description.webhooks.map((webhook) => {
|
||||
const webhookMethods =
|
||||
nodeType?.webhookMethods?.[webhook.name] ?? nodeType?.webhookMethods?.default;
|
||||
webhook.hasLifecycleMethods = Boolean(
|
||||
webhookMethods?.checkExists && webhookMethods?.create && webhookMethods?.delete,
|
||||
);
|
||||
return webhook;
|
||||
});
|
||||
}
|
||||
|
||||
return nodeType;
|
||||
}
|
||||
|
||||
(async () => {
|
||||
const loader = new PackageDirectoryLoader(packageDir);
|
||||
await loader.loadAll();
|
||||
@@ -79,7 +64,6 @@ function addWebhookLifecycle(nodeType) {
|
||||
.map((data) => {
|
||||
const nodeType = NodeHelpers.getVersionedNodeType(data.type);
|
||||
NodeHelpers.applySpecialNodeParameters(nodeType);
|
||||
addWebhookLifecycle(nodeType);
|
||||
return data.type;
|
||||
})
|
||||
.flatMap((nodeType) =>
|
||||
|
||||
Reference in New Issue
Block a user