Replace httpInNodes.remove with httpInNodes.delete to fix timeout error

This commit is contained in:
Debadutta Panda 2025-02-07 00:09:13 +05:30
parent 356c0c2416
commit 90328ef75e

View File

@ -361,7 +361,7 @@ module.exports = function(RED) {
this.on("close",function() {
// remove httpInNodeSettings from RED.httpNode
httpInNodes.remove(httpInNodeId)
httpInNodes.delete(httpInNodeId)
var node = this;
RED.httpNode._router.stack.forEach(function(route,i,routes) {
if (route.route && route.route.path === node.url && route.route.methods[node.method]) {