Skip to content

Commit

Permalink
- test without headers
Browse files Browse the repository at this point in the history
  • Loading branch information
psmagin committed Jun 21, 2024
1 parent bd9eb59 commit 13a07ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public TenantScopedExecutionService(FolioExecutionContext executionContext,

public <T> T executeTenantScoped(String tenantId, Callable<T> action) {
Map<String, Collection<String>> headers = executionContext == null ? emptyMap() : executionContext.getAllHeaders();
try (var fex = new FolioExecutionContextSetter(contextBuilder.buildContext(tenantId, headers))) {
try (var fex = new FolioExecutionContextSetter(contextBuilder.buildContext(tenantId))) {
log.info("Executing tenant scoped action [tenant={}]", tenantId);
return action.call();
} catch (Exception e) {
Expand Down

0 comments on commit 13a07ad

Please sign in to comment.