MCPcopy Index your code
hub / github.com/freeCodeCamp/freeCodeCamp / generateReportEmail

Function generateReportEmail

api/src/utils/email-templates.ts:10–33  ·  view source on GitHub ↗
(
  reporter: user,
  abuser: user,
  reportDesc: string
)

Source from the content-addressed store, hash-verified

8 * @returns - The generated email template.
9 */
10export const generateReportEmail = (
11 reporter: user,
12 abuser: user,
13 reportDesc: string
14) => {
15 return `
16Hello Team,
17
18This is to report the profile of ${abuser.username}. ID: ${abuser.id}.
19
20Report Details:
21
22${reportDesc}
23
24
25Reported by:
26ID: ${reporter.id}
27Username: ${reporter.username}
28Name:${reporter.name ? ' ' + reporter.name : ''}
29Email: ${reporter.email}
30
31Thanks and regards,
32${reporter.name ?? reporter.username}`;
33};

Callers 1

userRoutesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected