diff --git a/package-lock.json b/package-lock.json index d0eec9f..7a99945 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "warp-contracts-postgres", - "version": "1.1.0-beta.3", + "version": "1.1.0-beta.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "warp-contracts-postgres", - "version": "1.1.0-beta.3", + "version": "1.1.0-beta.4", "license": "MIT", "dependencies": { "@types/pg": "^8.10.2", diff --git a/package.json b/package.json index ee9b70a..5e1842d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "warp-contracts-postgres", - "version": "1.1.0-beta.3", + "version": "1.1.0-beta.4", "description": "Postgres contract cache for Warp SDK", "types": "./lib/types/index.d.ts", "main": "./lib/cjs/index.js", diff --git a/src/PgSortKeyCache.ts b/src/PgSortKeyCache.ts index 3939a64..678abe6 100644 --- a/src/PgSortKeyCache.ts +++ b/src/PgSortKeyCache.ts @@ -225,7 +225,8 @@ export class PgSortKeyCache implements SortKeyCache { SELECT count(1) as total FROM "${this.schemaName}"."${this.tableName}" WHERE key = $1 - `, [key] + `, + [key] ); if (rs.rows.length > 0) { const entriesTotal = rs.rows[0].total;