Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3294153
D7910.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
868 B
Referenced Files
None
Subscribers
None
D7910.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7910: [lib] extract local id field before sending report
Attached
Detach File
Event Timeline
Log In to Comment