From dc3f8dfe620d3511ed96bbcd170fc4daf9a4ee51 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 1 Aug 2022 09:49:03 -0300 Subject: [PATCH] fix channelJSON to use ujson.Null instead of null. --- src/main/scala/ChannelMaster.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/ChannelMaster.scala b/src/main/scala/ChannelMaster.scala index 2b7a0ef..51fa4c7 100644 --- a/src/main/scala/ChannelMaster.scala +++ b/src/main/scala/ChannelMaster.scala @@ -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(