Skip to content

Commit

Permalink
release: 1.0.6 (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb authored Dec 30, 2024
2 parents 5d9cadd + ef1768a commit 7bca13c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import org.rooftop.netx.api.OrchestratorFactory
import org.springframework.beans.factory.annotation.Value
import org.springframework.stereotype.Service
import java.util.*
import kotlin.time.Duration.Companion.minutes

@Service
class CreateGuildFacade(
Expand All @@ -25,8 +26,9 @@ class CreateGuildFacade(
createGuildRequest: CreateGuildRequest,
) {
createGuildOrchestrator.sagaSync(
createGuildRequest,
request = createGuildRequest,
context = mapOf("token" to token, IDEMPOTENCY_KEY to UUID.randomUUID().toString()),
timeoutMillis = 1.minutes.inWholeMilliseconds,
).decodeResultOrThrow(Unit::class)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class GuildController(

@ResponseStatus(HttpStatus.OK)
@GetMapping("/guilds/{guildId}")
fun getGuildById(guildId: Long): GuildResponse {
fun getGuildById(@PathVariable("guildId") guildId: Long): GuildResponse {
val guild = guildService.getGuildById(
guildId,
GuildService.loadMembers,
Expand Down

0 comments on commit 7bca13c

Please sign in to comment.