Skip to content

Commit

Permalink
Merge pull request #8 from protegeproject/FIX-validation-issue
Browse files Browse the repository at this point in the history
Fix validation issue for command executor
  • Loading branch information
soimugeoWB authored Nov 20, 2024
2 parents 3f03b22 + edffea9 commit 8568354
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public CompletableFuture<R> execute(Q request, ExecutionContext executionContext
var json = objectMapper.writeValueAsBytes(request);
org.springframework.amqp.core.Message rabbitRequest = new org.springframework.amqp.core.Message(json);
rabbitRequest.getMessageProperties().getHeaders().put(Headers.ACCESS_TOKEN, executionContext.jwt());
rabbitRequest.getMessageProperties().getHeaders().put(Headers.USER_ID, executionContext.userId());
rabbitRequest.getMessageProperties().getHeaders().put(Headers.USER_ID, executionContext.userId().id());
rabbitRequest.getMessageProperties().getHeaders().put(Headers.METHOD, request.getChannel());

return asyncRabbitTemplate.sendAndReceive(request.getChannel(), rabbitRequest).thenApply(this::handleResponse);
Expand Down

0 comments on commit 8568354

Please sign in to comment.