[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Prefer wrapping lists in JSON object.
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Prefer wrapping lists in JSON object. |
Date: |
Wed, 08 Jul 2020 12:47:26 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 245fc8e Prefer wrapping lists in JSON object.
245fc8e is described below
commit 245fc8ee395cb386e8b7f8fe410fcc30d8844c9d
Author: MS <ms@taler.net>
AuthorDate: Wed Jul 8 12:47:05 2020 +0200
Prefer wrapping lists in JSON object.
---
nexus/src/main/kotlin/tech/libeufin/nexus/server/JSON.kt | 2 +-
nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/JSON.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/server/JSON.kt
index 76219cd..01d6996 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/server/JSON.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/server/JSON.kt
@@ -119,7 +119,7 @@ data class BankConnectionInfo(
)
data class BankConnectionsList(
- val bankConnections: List<BankConnectionInfo>
+ val bankConnections: MutableList<BankConnectionInfo> = mutableListOf()
)
data class BankConnectionDeletion(
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
index 98d8e10..29b011a 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
@@ -667,10 +667,10 @@ fun serverMain(dbName: String, host: String) {
}
get("/bank-connections") {
- val connList = mutableListOf<BankConnectionInfo>()
+ val connList = BankConnectionsList()
transaction {
NexusBankConnectionEntity.all().forEach {
- connList.add(
+ connList.bankConnections.add(
BankConnectionInfo(
name = it.id.value,
type = it.type
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: Prefer wrapping lists in JSON object.,
gnunet <=