feat(core): Add closeFunction support to Sub-Nodes (#7708)

Github issue / Community forum post (link here to close automatically):

---------

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Co-authored-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
Jan Oberhauser
2023-12-21 14:21:09 +01:00
committed by GitHub
parent 9ac8825a67
commit bec0faed9e
6 changed files with 47 additions and 6 deletions

View File

@@ -114,7 +114,12 @@ export class MemoryRedisChat implements INodeType {
outputKey: 'output',
});
async function closeFunction() {
void client.disconnect();
}
return {
closeFunction,
response: logWrapper(memory, this),
};
}