mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Removed fallback to clicked count for opened count
fixes https://github.com/TryGhost/Team/issues/2189 We don't want this fallback because the table on the analytics page will be empty while the count be higher than zero
This commit is contained in:
parent
66e282f7e3
commit
250da0abf7
1 changed files with 1 additions and 4 deletions
|
@ -111,10 +111,7 @@ module.exports = async (model, frame, options = {}) => {
|
||||||
|
|
||||||
if (jsonModel.email && jsonModel.count) {
|
if (jsonModel.email && jsonModel.count) {
|
||||||
jsonModel.email.opened_count = Math.min(
|
jsonModel.email.opened_count = Math.min(
|
||||||
Math.max(
|
|
||||||
jsonModel.email.opened_count || 0,
|
jsonModel.email.opened_count || 0,
|
||||||
jsonModel.count.clicks || 0
|
|
||||||
),
|
|
||||||
jsonModel.email.email_count
|
jsonModel.email.email_count
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue