fix(Redis Node): Fix adding sets data types (#7444)

Fixes #6339
This commit is contained in:
Burak Akgün 2023-10-23 17:33:44 +02:00 committed by GitHub
parent 41236b7e08
commit 4e66023cd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -665,6 +665,10 @@ export class Redis implements INodeType {
for (let index = 0; index < (value as string[]).length; index++) {
await clientLset(keyName, index, (value as IDataObject)[index]!.toString());
}
} else if (type === 'sets') {
const clientSadd = util.promisify(client.sadd).bind(client);
//@ts-ignore
await clientSadd(keyName, value);
}
if (expire) {