Skip to content

Commit

Permalink
Fix interceptor wrong method name
Browse files Browse the repository at this point in the history
  • Loading branch information
tijsrademakers committed Sep 4, 2023
1 parent 5ebb788 commit 7e7bd00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public interface ExternalWorkerJobRestApiInterceptor {

void failExternalWorkerJob(ExternalWorkerJob job, ExternalWorkerJobFailureRequest request);

void accessAcquireExternalWorkerJobs(UnacquireExternalWorkerJobsRequest request);
void accessUnacquireExternalWorkerJobs(UnacquireExternalWorkerJobsRequest request);

void unacquireExternalWorkerJob(ExternalWorkerJob job, UnacquireExternalWorkerJobsRequest request);
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public ExternalWorkerUnacquireJobResource(ExternalJobRestResponseFactory restRes
@PostMapping(value = "/unacquire/jobs", produces = "application/json")
public ResponseEntity<?> unacquireJobs(@RequestBody UnacquireExternalWorkerJobsRequest request) {
if (restApiInterceptor != null) {
restApiInterceptor.accessAcquireExternalWorkerJobs(request);
restApiInterceptor.accessUnacquireExternalWorkerJobs(request);
}

if (StringUtils.isEmpty(request.getWorkerId())) {
Expand Down

0 comments on commit 7e7bd00

Please sign in to comment.