Skip to content

Commit

Permalink
add new rest operator to mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
rohwerj committed Apr 5, 2024
1 parent b506419 commit 2275ca3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ fun QueryOperator.toRestOperator() = when (this) {
QueryOperator.LESS_THAN_OR_EQUAL -> VariableQueryParameterDto.OperatorEnum.LTEQ
QueryOperator.LIKE -> VariableQueryParameterDto.OperatorEnum.LIKE
QueryOperator.NOT_EQUALS -> VariableQueryParameterDto.OperatorEnum.NEQ
QueryOperator.NOT_LIKE -> throw IllegalArgumentException()
QueryOperator.NOT_LIKE -> VariableQueryParameterDto.OperatorEnum.NOTLIKE
}

fun List<QueryVariableValue>.toDto() = if (this.isEmpty()) null else this.map { it.toDto() }
Expand Down

0 comments on commit 2275ca3

Please sign in to comment.