Skip to content

Commit

Permalink
add temp fix for exists
Browse files Browse the repository at this point in the history
  • Loading branch information
vmidyllic committed Feb 27, 2024
1 parent f2b541a commit a56eb46
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pubsignals/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,11 @@ func ParseQueryMetadata(ctx context.Context, propertyQuery PropertyQuery, ldCont
return nil, fmt.Errorf("invalid operation '%s' for field type '%s'", operatorName, query.Datatype)
}
}

query.Values, err = transformQueryValueToBigInts(ctx, propertyQuery.OperatorValue, query.Datatype)
if propertyQuery.Operator == circuits.EXISTS {
query.Values, err = transformQueryValueToBigInts(ctx, propertyQuery.OperatorValue, ld.XSDBoolean) // TODO: refactor
} else {
query.Values, err = transformQueryValueToBigInts(ctx, propertyQuery.OperatorValue, query.Datatype)
}
if err != nil {
return nil, err
}
Expand Down

0 comments on commit a56eb46

Please sign in to comment.