dcSpark / carp

A modular indexer for Cardano with an SQL Postgres backend (an alternative to the well known cardano-db-sync)
MIT License
105 stars 22 forks source link

Update pgtyped and fix some type issues #171

Closed SebastienGllmt closed 10 months ago

SebastienGllmt commented 10 months ago

This PR does two things:

  1. Updates pgtyped to v2.x.x
  2. I noticed some of our pgtyped files were returning a potentially null result even though they shouldn't be null. It turns out that pgtyped infers nullish whenever you use the encode function. I used the ! operate to remove the nullability of these types