gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: Create default DB on main launcher.


From: gnunet
Subject: [libeufin] branch master updated: Create default DB on main launcher.
Date: Sat, 23 Oct 2021 08:43:46 +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 154e1d6  Create default DB on main launcher.
154e1d6 is described below

commit 154e1d6631b2427eaf4225a3819c428cf0104cee
Author: ms <ms@taler.net>
AuthorDate: Sat Oct 23 08:43:21 2021 +0200

    Create default DB on main launcher.
---
 sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt 
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index 355e611..511b557 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -273,6 +273,7 @@ class Serve : CliktCommand("Run sandbox HTTP server") {
             exitProcess(1)
         }
         execThrowableOrTerminate { 
dbCreateTables(getDbConnFromEnv(SANDBOX_DB_ENV_VAR_NAME)) }
+        maybeCreateDefaultDemobank()
         if (withUnixSocket != null) {
             startServer(
                 withUnixSocket ?: throw Exception("Could not use the Unix 
domain socket path value!"),
@@ -284,11 +285,6 @@ class Serve : CliktCommand("Run sandbox HTTP server") {
     }
 }
 
-private fun getCustomerFromDb(username: String): DemobankCustomerEntity {
-    return transaction { DemobankCustomerEntity.find {
-        DemobankCustomersTable.username eq username
-    }.firstOrNull() } ?: throw notFound("Customer with username '$username' 
not found")
-}
 private fun getJsonFromDemobankConfig(fromDb: DemobankConfigEntity): Demobank {
     return Demobank(
         currency = fromDb.currency,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]