Skip to content

Commit

Permalink
Fix static checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mariayord committed Jul 9, 2024
1 parent 6b73a08 commit 49fb219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resolvers/parse/ast2cqn/where.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const _arrayInsertBetweenFlat = (array, element) =>

const _joinedXprFrom_xprs = (_xprs, operator) => ({ xpr: _arrayInsertBetweenFlat(_xprs, operator) })

const _true_xpr = [{ val: 1 }, '=', { val: 1 }]
const _true_xpr = [{ val: '1' }, '=', { val: '1' }]

const _parseObjectValue = (objectValue, columnName) => {
const _xprs = objectValue.fields
Expand All @@ -76,7 +76,7 @@ const _parseObjectValue = (objectValue, columnName) => {
return _joinedXprFrom_xprs(_xprs, 'and')
}

const _false_xpr = [{ val: 0 }, '=', { val: 1 }]
const _false_xpr = [{ val: '0' }, '=', { val: '1' }]

const _parseListValue = (listValue, columnName) => {
const _xprs = listValue.values.map(value => _parseObjectValue(value, columnName)).filter(value => value !== undefined)
Expand Down

0 comments on commit 49fb219

Please sign in to comment.