Skip to content

Commit

Permalink
Merge branch 'stage' into Release-5.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DomPeliniAerospike authored Oct 14, 2024
2 parents a8865c0 + a99b18f commit 74a7b76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/exp_lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const _rtype = _valueExp(exp.ops.VAL_RTYPE, 'intVal')
*********************************************************************************/

function getListType (type, returnType, isMulti) {

if (!Object.values(exp.type).includes(type)) {
throw new TypeError('invalid value for valueType parameter')
}
Expand All @@ -48,6 +47,9 @@ function getListType (type, returnType, isMulti) {
expected = exp.type.LIST
}
break
case lists.returnType.EXISTS:
expected = exp.type.BOOL
break
case lists.returnType.NONE:
default:
throw new TypeError('either set the return type as auto or match with return object data type')
Expand Down
4 changes: 3 additions & 1 deletion lib/exp_maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const _rtype = _valueExp(exp.ops.VAL_RTYPE, 'intVal')
*********************************************************************************/

function getMapType (type, returnType, isMulti) {

if (!Object.values(exp.type).includes(type)) {
throw new TypeError('invalid value for valueType parameter')
}
Expand All @@ -34,6 +33,9 @@ function getMapType (type, returnType, isMulti) {
expected = exp.type.LIST
}
break
case maps.returnType.EXISTS:
expected = exp.type.BOOL
break
case maps.returnType.KEY_VALUE:
case maps.returnType.ORDERED_MAP:
case maps.returnType.UNORDERED_MAP:
Expand Down

0 comments on commit 74a7b76

Please sign in to comment.