File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/main/kotlin/org/gitanimals/guild Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import org.rooftop.netx.api.OrchestratorFactory
88import org.springframework.beans.factory.annotation.Value
99import org.springframework.stereotype.Service
1010import java.util.*
11+ import kotlin.time.Duration.Companion.minutes
1112
1213@Service
1314class CreateGuildFacade (
@@ -25,8 +26,9 @@ class CreateGuildFacade(
2526 createGuildRequest : CreateGuildRequest ,
2627 ) {
2728 createGuildOrchestrator.sagaSync(
28- createGuildRequest,
29+ request = createGuildRequest,
2930 context = mapOf (" token" to token, IDEMPOTENCY_KEY to UUID .randomUUID().toString()),
31+ timeoutMillis = 1 .minutes.inWholeMilliseconds,
3032 ).decodeResultOrThrow(Unit ::class )
3133 }
3234
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class GuildController(
7373
7474 @ResponseStatus(HttpStatus .OK )
7575 @GetMapping(" /guilds/{guildId}" )
76- fun getGuildById (guildId : Long ): GuildResponse {
76+ fun getGuildById (@PathVariable( " guildId " ) guildId : Long ): GuildResponse {
7777 val guild = guildService.getGuildById(
7878 guildId,
7979 GuildService .loadMembers,
You canโt perform that action at this time.
0 commit comments