Skip to content

Commit

Permalink
[hotfix] fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tkdwns414 committed Jul 16, 2024
1 parent 6c089da commit bc49e5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class ParticipantController {

private final ParticipantService participantService;

@PatchMapping("/v1/promises/{promiseId}/preperation")
@PatchMapping("/v1/promises/{promiseId}/preparation")
public ResponseEntity<Void> preparePromise(
@UserId final Long userId,
@PathVariable final Long promiseId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void preparePromise(
final Long promiseId
) {
Participant participant = participantRetriever.findByPromiseIdAndUserId(promiseId, userId);
if (!validateState(participant, "preperation")) {
if (!validateState(participant, "preparation")) {
throw new ParticipantException(ParticipantErrorCode.INVALID_STATE);
}
participantEditor.preparePromise(participant);
Expand Down Expand Up @@ -143,7 +143,7 @@ private boolean validateState(
final String status
) {
switch (status) {
case "preperation":
case "preparation":
return isNull(participant.getPreparationStartAt())
&& isNull(participant.getDepartureAt())
&& isNull(participant.getArrivalAt());
Expand Down

0 comments on commit bc49e5a

Please sign in to comment.