Return "null" if redis key does not get found #278

This commit is contained in:
Jan Oberhauser 2020-02-08 23:30:43 -08:00
parent 0e0f5c3e15
commit f9315658b8

View file

@ -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') {