# After upgrade, walletsUpdate, updateLedger bool throws error

**URL:** <https://forum.heroiclabs.com/t/after-upgrade-walletsupdate-updateledger-bool-throws-error/5106>\
**Category:** Runtime Framework\
**Tags:** typescript, server-framework\
**Created:** [March 30, 2024, 1:17pm UTC](https://forum.heroiclabs.com/t/after-upgrade-walletsupdate-updateledger-bool-throws-error/5106 "2024-03-30T13:17:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanprice](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/ryanprice/32/1323_2.png) [@ryanprice](https://forum.heroiclabs.com/u/ryanprice)\
**Post date:** [March 30, 2024, 1:17pm UTC](https://forum.heroiclabs.com/t/after-upgrade-walletsupdate-updateledger-bool-throws-error/5106/1 "2024-03-30T13:17:11Z")

</div>

> **[Function Reference](https://heroiclabs.com/docs/nakama/server-framework/typescript-runtime/function-reference/#walletsUpdate)**
>
> This page lists all functions available within Nakama's JavaScript runtime, with their respective parameters and corresponding code samples.

Hey guys running into something funky,. When I updated from 3.15.0 to 3.21.1

The walletsUpdate() intellisense says default for 2nd parameter updateLedger is true. Documentation says false. The behavior I observer is false ( verified in console wallet ledger).  
Now when I set it to true  
walletsUpdate(updatesArray, true); I get an ( new ) error

`failed to update user wallet: ERROR: at or near \")\": syntax error: unimplemented: arrays of jsonb not allowed (SQLSTATE 0A000)])",`

Any suggestions ? Thanks !

 ![image](https://us1.discourse-cdn.com/flex020/uploads/heroiclabs/original/2X/4/4d0bd66ecd3d45e131576d2e446812456782655d.png)

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [April 1, 2024, 10:16am UTC](https://forum.heroiclabs.com/t/after-upgrade-walletsupdate-updateledger-bool-throws-error/5106/2 "2024-04-01T10:16:51Z")

</div>

Hey @ryanprice, the Nakama upgrade introduced some query changes which are incompatible with some older versions of CockroachDB, you’ll need to upgrade that too.
