Skip to content

Commit

Permalink
fix channelJSON to use ujson.Null instead of null.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Aug 1, 2022
1 parent b3e7e63 commit dc3f8df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/ChannelMaster.scala
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,10 @@ class ChannelMaster { self =>
"blockday" -> lcss.blockDay.toInt,
"local_errors" -> channel.currentData.localErrors
.map(dtlerr => ujson.Str(dtlerr.toString))
.pipe(v => if v.isEmpty then v else null),
.pipe(v => if v.isEmpty then v else ujson.Null),
"remote_errors" -> channel.currentData.remoteErrors
.map(err => ujson.Str(err.toString))
.pipe(v => if v.isEmpty then v else null),
.pipe(v => if v.isEmpty then v else ujson.Null),
"local_updates" -> lcss.localUpdates,
"remote_updates" -> lcss.remoteUpdates,
"balance" -> ujson.Obj(
Expand Down

0 comments on commit dc3f8df

Please sign in to comment.