Fix CustomerTools example to use existing methods (#3390)
Signed-off-by: Filip Hrisafov <filip.hrisafov@gmail.com>
This commit is contained in:
@@ -939,7 +939,7 @@ class CustomerTools {
|
||||
|
||||
@Tool(description = "Retrieve customer information")
|
||||
Customer getCustomerInfo(Long id, ToolContext toolContext) {
|
||||
return customerRepository.findById(id, toolContext.get("tenantId"));
|
||||
return customerRepository.findById(id, toolContext.getContext().get("tenantId"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user