diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-02-03 17:00:55 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-02-03 17:00:55 +0100 |
commit | 3cc747afb298d297f0bc3680a561ea9f9075114e (patch) | |
tree | 5259450b3fc8864cefccc360a82251cfea6db8b6 /kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision | |
parent | 48d0bddd8f27c7165f7dfce3abe1072b6eb4f9f1 (diff) | |
download | kvision-3cc747afb298d297f0bc3680a561ea9f9075114e.tar.gz kvision-3cc747afb298d297f0bc3680a561ea9f9075114e.tar.bz2 kvision-3cc747afb298d297f0bc3680a561ea9f9075114e.zip |
Refactor server-side interfaces.
Diffstat (limited to 'kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision')
-rw-r--r-- | kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision/remote/Profile.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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 <RESP> withProfile(block: (Profile) -> RESP): RESP { +suspend fun <RESP> withProfile(block: suspend (Profile) -> RESP): RESP { val profile = try { val requestAttributes = (RequestContextHolder.getRequestAttributes() as ServletRequestAttributes) val req = requestAttributes.request |