0
Fork 0
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:
Nazar Gargol 2020-02-19 19:55:09 +08:00
parent 8e78c5f19c
commit a1fef1fc7c

View file

@ -329,6 +329,9 @@ const members = {
}, {
name: 'labels',
lookup: /labels/i
}, {
name: 'created_at',
lookup: /created_at/i
}];
return fsLib.readCSV({
@ -360,7 +363,8 @@ const members = {
subscribed: subscribed,
stripe_customer_id: entry.stripe_customer_id,
comped: (String(entry.complimentary_plan).toLocaleLowerCase() === 'true'),
labels: entryLabels
labels: entryLabels,
created_at: entry.created_at
}]
},
options: {