Page MenuHomePhabricator

D7910.diff
No OneTemporary

D7910.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
Sun, Nov 17, 6:32 PM (9 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2531183
Default Alt Text
D7910.diff (868 B)

Event Timeline