Working towards user relationship tests passing.

This commit is contained in:
Sam Rose 2024-05-20 12:05:01 +01:00
parent 941bd7a657
commit 1562e7b1f1
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -406,7 +406,7 @@ describe.each([
])
})
it("should parse the encoded js binding. Return rows with appointments 2 weeks in the past", async () => {
it.only("should parse the encoded js binding. Return rows with appointments 2 weeks in the past", async () => {
const jsBinding =
"const currentTime = new Date()\ncurrentTime.setDate(currentTime.getDate()-14);\nreturn currentTime.toISOString();"
const encodedBinding = encodeJSBinding(jsBinding)

View File

@ -272,7 +272,8 @@ class InternalBuilder {
}
statement +=
(statement ? andOr : "") +
`COALESCE(LOWER(${likeKey(this.client, key)}) LIKE ?, FALSE)`
// `COALESCE(LOWER(${likeKey(this.client, key)}) LIKE ?, FALSE)`
`LOWER(${likeKey(this.client, key)}) LIKE ?`
}
if (statement === "") {