Applying map transformation correctly to POST query params