Skip to content

Commit

Permalink
fixed request body required
Browse files Browse the repository at this point in the history
  • Loading branch information
ScarletRedMan committed May 27, 2024
1 parent 26fccff commit 33327d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ResponseEntity<Void> createRoom(@PathVariable String instanceId,
@RequestParam int slots,
@RequestParam(defaultValue = "false") boolean locked,
@RequestParam(defaultValue = "false") boolean persist,
@RequestBody String payload) {
@RequestBody(required = false) String payload) {
var instance = instanceService.find(InstanceId.of(instanceId))
.orElseThrow(() -> DoesNotExistsException.forInstance(InstanceId.of(instanceId)));
roomService.create(roomFactory.create(RoomId.of(id), instance, slots, payload, persist, locked));
Expand Down

0 comments on commit 33327d5

Please sign in to comment.