Modifying input in a middleware - tRPC