1
0
Fork 0
mirror of synced 2024-09-12 23:43:09 +12:00

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 jsBinding =
"const currentTime = new Date()\ncurrentTime.setDate(currentTime.getDate()-14);\nreturn currentTime.toISOString();" "const currentTime = new Date()\ncurrentTime.setDate(currentTime.getDate()-14);\nreturn currentTime.toISOString();"
const encodedBinding = encodeJSBinding(jsBinding) const encodedBinding = encodeJSBinding(jsBinding)

View file

@ -272,7 +272,8 @@ class InternalBuilder {
} }
statement += statement +=
(statement ? andOr : "") + (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 === "") { if (statement === "") {