Skip to content

Commit 95ebdf7

Browse files
committed
Fix typo in $arr_contains 😬
1 parent 3ff93ec commit 95ebdf7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "strontium",
3-
"version": "2.9.6",
3+
"version": "2.9.7",
44
"description": "Strontium is a TypeScript toolkit for High Performance API servers built for Production not Projects.",
55
"main": "lib/src/index.js",
66
"types": "lib/src/index.d.ts",

src/query/drivers/sql/SQLFilterCompiler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ export const compileSQLFilter: FilterCompiler<[string, Array<any>]> = (
8080
queries.push(["?? <= ?", [field, subquery.$lte]])
8181
} else if (subquery.$contains !== undefined) {
8282
queries.push(["?? LIKE ?", [field, `%${subquery.$contains}%`]])
83-
} else if (subquery.$arr_cotains !== undefined) {
83+
} else if (subquery.$arr_contains !== undefined) {
8484
// This implementation is currently unique to PostgreSQL - We should consider how to add similar functionality to MySQL
85-
queries.push(["?? @> ?", [field, subquery.$arr_cotains]])
85+
queries.push(["?? @> ?", [field, subquery.$arr_contains]])
8686
} else if (subquery.$eq !== undefined) {
8787
queries.push(["?? = ?", [field, subquery.$eq]])
8888
} else {

0 commit comments

Comments
 (0)