Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/responders/message-report-responder.js
Show All 27 Lines | ): Promise<MessageReportCreationResult> { | ||||
const request = await validateInput( | const request = await validateInput( | ||||
viewer, | viewer, | ||||
messageReportCreationRequestInputValidator, | messageReportCreationRequestInputValidator, | ||||
input, | input, | ||||
); | ); | ||||
const rawMessageInfos = await createMessageReport(viewer, request); | const rawMessageInfos = await createMessageReport(viewer, request); | ||||
const result = { messageInfo: rawMessageInfos[0] }; | const result = { messageInfo: rawMessageInfos[0] }; | ||||
return validateOutput(viewer, messageReportCreationResultValidator, result); | return validateOutput( | ||||
viewer.platformDetails, | |||||
messageReportCreationResultValidator, | |||||
result, | |||||
); | |||||
} | } | ||||
export { messageReportCreationResponder }; | export { messageReportCreationResponder }; |