Query All Records function is not returning result

Options

I have an endpoint that edits a product. I have a custom function that edits inventory on this endpoint. Within this custom function, I have a query on a table called stockProduct by Query All Records. When I ran the test on the endpoint, that fetch returned null.

However, in my database there was the record:

So I created another endpoint with just the problematic piece of code isolated. And it was returning normally.

If anyone can help me solve this problem...

Comments