Failed to run SQL Query, what is wrong with my function?
I'm trying to create a small function to return just the column user_metadata from auth.users. The select seems to work on it's own, but when I try to fun the code in the picture, I get a 'Failed to run sql query: syntax error at or near "END"' and I can't find what I did wrong... Can someone help me?
