diff --git a/lib/actions/report-actions.js b/lib/actions/report-actions.js --- a/lib/actions/report-actions.js +++ b/lib/actions/report-actions.js @@ -19,9 +19,10 @@ request: ClientReportCreationRequest, ) => Promise) => async request => { + const { id, ...report } = request; const response = await callServerEndpoint( 'create_report', - request, + report, callServerEndpointOptions, ); return { id: response.id }; @@ -38,7 +39,11 @@ ): (( reports: $ReadOnlyArray, ) => Promise) => - async reports => { + async clientReports => { + const reports = clientReports.map(clientReport => { + const { id, ...report } = clientReport; + return report; + }); await callServerEndpoint( 'create_reports', { reports },