(issueId, issueCreatedAt)
| 41 | } |
| 42 | |
| 43 | function 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 | } |