mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-24 02:52:24 -08:00
⚡ Return "null" if redis key does not get found #278
This commit is contained in:
parent
0e0f5c3e15
commit
f9315658b8
|
@ -449,7 +449,7 @@ export class Redis implements INodeType {
|
|||
const keyGet = this.getNodeParameter('key', itemIndex) as string;
|
||||
const keyType = this.getNodeParameter('keyType', itemIndex) as string;
|
||||
|
||||
const value = await getValue(client, keyGet, keyType);
|
||||
const value = await getValue(client, keyGet, keyType) || null;
|
||||
set(item.json, propertyName, value);
|
||||
returnItems.push(item);
|
||||
} else if (operation === 'keys') {
|
||||
|
|
Loading…
Reference in a new issue