mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Decreased likelihood of duplicate member emails
refs https://github.com/TryGhost/DevOps/issues/119 - we can just expand the range here so it becomes extremely unlikely to ever hit duplicate emails
This commit is contained in:
parent
bb99a4c394
commit
76455cb64a
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ class MembersImporter extends TableImporter {
|
||||||
id,
|
id,
|
||||||
uuid: faker.datatype.uuid(),
|
uuid: faker.datatype.uuid(),
|
||||||
transient_id: faker.datatype.uuid(),
|
transient_id: faker.datatype.uuid(),
|
||||||
email: `${name.replace(' ', '.').replace(/[^a-zA-Z0-9]/g, '').toLowerCase()}${faker.datatype.number({min: 1000, max: 9999})}@example.com`,
|
email: `${name.replace(' ', '.').replace(/[^a-zA-Z0-9]/g, '').toLowerCase()}${faker.datatype.number({min: 0, max: 999999})}@example.com`,
|
||||||
status: luck(5) ? 'comped' : luck(25) ? 'paid' : 'free',
|
status: luck(5) ? 'comped' : luck(25) ? 'paid' : 'free',
|
||||||
name: name,
|
name: name,
|
||||||
expertise: luck(30) ? faker.name.jobTitle() : undefined,
|
expertise: luck(30) ? faker.name.jobTitle() : undefined,
|
||||||
|
|
Loading…
Add table
Reference in a new issue