refactor(billing+entries): remove unused import and adjust tenant transaction signature
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ import org.jetbrains.exposed.v1.jdbc.transactions.transaction
|
||||
/**
|
||||
* Führt einen Exposed-Transaction-Block im Kontext des aktuellen Tenants aus und setzt das Suchpfad-Schema.
|
||||
*/
|
||||
suspend inline fun <T> tenantTransaction(crossinline block: () -> T): T = transaction {
|
||||
inline fun <T> tenantTransaction(crossinline block: () -> T): T = transaction {
|
||||
val schema = TenantContextHolder.current()?.schemaName
|
||||
?: error("No tenant in context. Ensure TenantWebFilter is installed and request has X-Event-Id")
|
||||
// Set search_path for this transaction/connection
|
||||
|
||||
Reference in New Issue
Block a user