mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Added created_at
field to accepted fields for members CSV import
no issue - This field is usefult when importing from external sources. - The date format should be compatible with one used internally by Ghost which is RFC 2822 compliant format
This commit is contained in:
parent
8e78c5f19c
commit
a1fef1fc7c
1 changed files with 5 additions and 1 deletions
|
@ -329,6 +329,9 @@ const members = {
|
||||||
}, {
|
}, {
|
||||||
name: 'labels',
|
name: 'labels',
|
||||||
lookup: /labels/i
|
lookup: /labels/i
|
||||||
|
}, {
|
||||||
|
name: 'created_at',
|
||||||
|
lookup: /created_at/i
|
||||||
}];
|
}];
|
||||||
|
|
||||||
return fsLib.readCSV({
|
return fsLib.readCSV({
|
||||||
|
@ -360,7 +363,8 @@ const members = {
|
||||||
subscribed: subscribed,
|
subscribed: subscribed,
|
||||||
stripe_customer_id: entry.stripe_customer_id,
|
stripe_customer_id: entry.stripe_customer_id,
|
||||||
comped: (String(entry.complimentary_plan).toLocaleLowerCase() === 'true'),
|
comped: (String(entry.complimentary_plan).toLocaleLowerCase() === 'true'),
|
||||||
labels: entryLabels
|
labels: entryLabels,
|
||||||
|
created_at: entry.created_at
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue