mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-01 02:41:39 -05:00
Data generator: Fixed the URL formatting for newsletter clicks
no issue
This commit is contained in:
parent
e5fc4bd6ba
commit
1d7572fed5
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ class RedirectsImporter extends TableImporter {
|
|||
return {
|
||||
id: faker.database.mongodbObjectId(),
|
||||
from: `/r/${faker.datatype.hexadecimal({length: 32, prefix: '', case: 'lower'})}`,
|
||||
to: `https://${faker.internet.url()}/${faker.helpers.slugify(`${faker.word.adjective()} ${faker.word.noun()}`).toLowerCase()}`,
|
||||
to: `${faker.internet.url()}/${faker.helpers.slugify(`${faker.word.adjective()} ${faker.word.noun()}`).toLowerCase()}`,
|
||||
post_id: this.model.id,
|
||||
created_at: this.model.published_at,
|
||||
updated_at: this.model.published_at
|
||||
|
|
Loading…
Add table
Reference in a new issue