MCPcopy Create free account
hub / github.com/electric-sql/electric / generateComment

Function generateComment

examples/linearlite/db/generate_data.js:43–53  ·  view source on GitHub ↗
(issueId, issueCreatedAt)

Source from the content-addressed store, hash-verified

41}
42
43function generateComment(issueId, issueCreatedAt) {
44 const createdAt = faker.date.between({ from: issueCreatedAt, to: new Date() })
45 return {
46 id: uuidv4(),
47 body: faker.lorem.text(),
48 username: faker.internet.userName(),
49 issue_id: issueId,
50 created: createdAt.toISOString(),
51 modified: createdAt.toISOString(), // comments are never modified
52 }
53}

Callers 1

generateIssueFunction · 0.70

Calls 1

textMethod · 0.80

Tested by

no test coverage detected