From 0d072ed8d3cfd97b4d526fee9853584d908e74b7 Mon Sep 17 00:00:00 2001 From: Adan Date: Thu, 1 Feb 2024 14:49:19 +0000 Subject: [PATCH] Update the zadd and zaddincr docs. --- node/src/BaseClient.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node/src/BaseClient.ts b/node/src/BaseClient.ts index 795a741053..84ea12e502 100644 --- a/node/src/BaseClient.ts +++ b/node/src/BaseClient.ts @@ -989,6 +989,7 @@ export class BaseClient { * @param changed - Modify the return value from the number of new elements added, to the total number of elements changed. * @returns The number of elements added to the sorted set. * If `changed` is set, returns the number of elements updated in the sorted set. + * If `key` holds a value that is not a sorted set, an error is returned. * * @example * await zadd("mySortedSet", \{ "member1": 10.5, "member2": 8.2 \}) @@ -1025,6 +1026,7 @@ export class BaseClient { * @param options - The Zadd options. * @returns The score of the member. * If there was a conflict with the options, the operation aborts and null is returned. + * If `key` holds a value that is not a sorted set, an error is returned. * * @example * await zaddIncr("mySortedSet", member , 5.0)