Skip to content

Commit

Permalink
fix(api-database): cast to numeric (#686)
Browse files Browse the repository at this point in the history
* cast to numeric

* empty commit
  • Loading branch information
oXtxNt9U authored Sep 5, 2024
1 parent 3c4d794 commit ffcca91
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const makeWalletRepository = (dataSource: RepositoryDataSource): WalletRe
convertToJsonbSorting(sorting, [
{
direction: "desc",
jsonFieldAccessor: { cast: "bigint", fieldName: "balance", operator: "->>" },
jsonFieldAccessor: { cast: "numeric", fieldName: "balance", operator: "->>" },
property: "attributes",
},
]),
Expand Down Expand Up @@ -59,7 +59,7 @@ const convertToJsonbSorting = (sorting: Sorting, defaultSort: Sorting): Sorting
(item): SortFragment => ({
direction: item.direction,
jsonFieldAccessor: {
cast: "bigint",
cast: "numeric",
fieldName: item.property.replace("attributes.", ""),
operator: "->>",
},
Expand Down

0 comments on commit ffcca91

Please sign in to comment.