Page MenuHomePhabricator

D7910.id27126.diff
No OneTemporary

D7910.id27126.diff

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<ReportCreationResponse>) =>
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<ClientReportCreationRequest>,
) => Promise<void>) =>
- async reports => {
+ async clientReports => {
+ const reports = clientReports.map(clientReport => {
+ const { id, ...report } = clientReport;
+ return report;
+ });
await callServerEndpoint(
'create_reports',
{ reports },

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 8:44 AM (18 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2693432
Default Alt Text
D7910.id27126.diff (868 B)

Event Timeline