Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
Use native toString() method rather than our Json.stringify() method
Browse files Browse the repository at this point in the history
  • Loading branch information
KendallWeihe committed Dec 19, 2023
1 parent 7768694 commit 82a4e06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package ftl.pfi.data

import ftl.pfi.Json
import ftl.pfi.clients.PostgresClient
import tbdex.sdk.protocol.models.Message

Expand All @@ -19,7 +18,7 @@ class ExchangesRepository {
setString(2, message.metadata.id.toString())
setString(3, message.metadata.from)
setString(4, message.metadata.kind.toString())
setString(5, Json.stringify(message))
setString(5, message.toString())
}
statement.executeUpdate()
statement.close()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package ftl.pfi.data

import ftl.pfi.Json
import ftl.pfi.clients.PostgresClient
import tbdex.sdk.protocol.models.Offering

Expand Down Expand Up @@ -33,7 +32,7 @@ class OfferingsRepository {
setString(1, offering.metadata.id.toString())
setString(2, offering.data.payinCurrency.currencyCode)
setString(3, offering.data.payoutCurrency.currencyCode)
setString(4, Json.stringify(offering))
setString(4, offering.toString())
}
statement.executeUpdate()
statement.close()
Expand Down

0 comments on commit 82a4e06

Please sign in to comment.