That’s strange, your query is not being recognized as an array. Just tested the same and it seems to work fine:
Can you maybe try recreating the server action?