mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Fixed members-csv not using renamed tiers field
This commit is contained in:
parent
f6d9b965db
commit
70229e4fd3
1 changed files with 5 additions and 5 deletions
|
@ -35,11 +35,11 @@ const unparse = (members, columns = DEFAULT_COLUMNS.slice()) => {
|
||||||
}).join(',');
|
}).join(',');
|
||||||
}
|
}
|
||||||
|
|
||||||
let products = '';
|
let tiers = '';
|
||||||
|
|
||||||
if (Array.isArray(member.products)) {
|
if (Array.isArray(member.tiers)) {
|
||||||
products = member.products.map((product) => {
|
tiers = member.tiers.map((tier) => {
|
||||||
return product.name;
|
return tier.name;
|
||||||
}).join(',');
|
}).join(',');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ const unparse = (members, columns = DEFAULT_COLUMNS.slice()) => {
|
||||||
created_at: member.created_at,
|
created_at: member.created_at,
|
||||||
deleted_at: member.deleted_at,
|
deleted_at: member.deleted_at,
|
||||||
labels: labels,
|
labels: labels,
|
||||||
products: products,
|
products: tiers,
|
||||||
error: member.error || null
|
error: member.error || null
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue