Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3515397
D7910.id27126.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.id27126.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
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)
Attached To
Mode
D7910: [lib] extract local id field before sending report
Attached
Detach File
Event Timeline
Log In to Comment