Using HTTP Requests to Hide Items in a Repeater

I am trying to create a repeater that shows events in which people can sign up for, but I want the events to expire after their “endTime” has expired. Right now I have a “show” boolean value that if false, will hide all data. What I am trying to do is uncheck the “show” value, if today’s date is less than the “endTime” date.

So I tried to create a function named updateDatabase and made the request but nothing happened. I have never used HTTP requests before to run my code, so I need help figuring out what I am missing. Here are the screenshots below and event after making the request, the database update like it should.