Issues calling server/ts function in API route - TanStack