From 3cc747afb298d297f0bc3680a561ea9f9075114e Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sun, 3 Feb 2019 17:00:55 +0100 Subject: Refactor server-side interfaces. --- .../src/main/kotlin/pl/treksoft/kvision/remote/Profile.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision') diff --git a/kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision/remote/Profile.kt b/kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision/remote/Profile.kt index 02c0fe27..18164800 100644 --- a/kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision/remote/Profile.kt +++ b/kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision/remote/Profile.kt @@ -37,7 +37,7 @@ actual typealias Profile = CommonProfile * A helper extension function for processing with authenticated user profile. */ @Suppress("TooGenericExceptionCaught") -fun withProfile(block: (Profile) -> RESP): RESP { +suspend fun withProfile(block: suspend (Profile) -> RESP): RESP { val profile = try { val requestAttributes = (RequestContextHolder.getRequestAttributes() as ServletRequestAttributes) val req = requestAttributes.request -- cgit