envio 2.12.1 → 2.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/db/Table.res +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "envio",
3
- "version": "v2.12.1",
3
+ "version": "v2.12.3",
4
4
  "description": "A latency and sync speed optimized, developer friendly blockchain data indexer.",
5
5
  "bin": "./bin.js",
6
6
  "repository": {
@@ -23,10 +23,10 @@
23
23
  },
24
24
  "homepage": "https://envio.dev",
25
25
  "optionalDependencies": {
26
- "envio-linux-x64": "v2.12.1",
27
- "envio-linux-arm64": "v2.12.1",
28
- "envio-darwin-x64": "v2.12.1",
29
- "envio-darwin-arm64": "v2.12.1"
26
+ "envio-linux-x64": "v2.12.3",
27
+ "envio-linux-arm64": "v2.12.3",
28
+ "envio-darwin-x64": "v2.12.3",
29
+ "envio-darwin-arm64": "v2.12.3"
30
30
  },
31
31
  "dependencies": {
32
32
  "@envio-dev/hypersync-client": "0.6.3",
package/src/db/Table.res CHANGED
@@ -214,8 +214,8 @@ let toSqlParams = (table: table, ~schema) => {
214
214
  | Bool =>
215
215
  // Workaround for https://github.com/porsager/postgres/issues/471
216
216
  S.union([
217
- S.literal("t")->S.to(_ => true),
218
- S.literal("f")->S.to(_ => false),
217
+ S.literal(1)->S.to(_ => true),
218
+ S.literal(0)->S.to(_ => false),
219
219
  ])->S.toUnknown
220
220
  | _ => schema
221
221
  }
@@ -242,6 +242,7 @@ let toSqlParams = (table: table, ~schema) => {
242
242
  | Field(f) =>
243
243
  switch f.fieldType {
244
244
  | Custom(fieldType) => `${(Text :> string)}[]::${(fieldType :> string)}`
245
+ | Boolean => `${(Integer :> string)}[]::${(f.fieldType :> string)}`
245
246
  | fieldType => (fieldType :> string)
246
247
  }
247
248
  | DerivedFrom(_) => (Text :> string)