Closed conradbekondo closed 2 months ago
I went through and I understood that, the error message suggests that there is an issue with the return type of the calculateTotalQuantityByProduct method in the MovementsRepository. The method is defined to return an int primitive type, but the advice (interceptor) used in the AOP invocation is returning a null value, which does not match the primitive return type.
So I modified the calculateTotalQuantityByProduct method to return an integer
@IlorsonDel you can just use Optional<Integer>
as return type
Thanks sir, I did so, and pushed back
@IlorsonDel did you build the application on your local machine before pushing?
https://github.com/conradbekondo/inventory-api/actions/runs/8910454921/job/24469764276#step:5:27
I build it and solve the remaining errors. Am just from pushing it back, you can look at it !
I get this error while trying to fetch data from the
GET /api/inventory/products
endpoint after updating to the latest docker image.