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-jooby/src') diff --git a/kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/remote/Profile.kt b/kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/remote/Profile.kt index 98f8bdb3..ee5c59fc 100644 --- a/kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/remote/Profile.kt +++ b/kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/remote/Profile.kt @@ -32,7 +32,7 @@ actual typealias Profile = CommonProfile /** * A helper extension function for processing with authenticated user profile. */ -fun Request.withProfile(block: (Profile) -> RESP): RESP { +suspend fun Request.withProfile(block: suspend (Profile) -> RESP): RESP { val profile = this.require(CommonProfile::class.java) as CommonProfile? return profile?.let { block(profile) -- cgit