|
|
@@ -589,7 +589,7 @@ export class WorkDayStatisticsService {
|
|
|
likesCount: stat?.likesCount ?? 0,
|
|
|
commentsCount: stat?.commentsCount ?? 0,
|
|
|
collectsCount: stat?.collectsCount ?? 0,
|
|
|
- updateTime: latestUpdate ? latestUpdate.toISOString() : undefined,
|
|
|
+ updateTime: latestUpdate ? this.formatUpdateTime(latestUpdate) : undefined,
|
|
|
};
|
|
|
});
|
|
|
|
|
|
@@ -883,7 +883,7 @@ export class WorkDayStatisticsService {
|
|
|
const accountYesterdayLikes = yesterdayUds?.likeCount ?? 0;
|
|
|
const accountYesterdayFansIncrease = yesterdayUds?.fansIncrease ?? 0;
|
|
|
|
|
|
- const updateTime = (yesterdayUds?.updatedAt ?? account.updatedAt).toISOString();
|
|
|
+ const updateTime = this.formatUpdateTime(yesterdayUds?.updatedAt ?? account.updatedAt ?? new Date());
|
|
|
|
|
|
accountList.push({
|
|
|
id: account.id,
|
|
|
@@ -1413,7 +1413,7 @@ export class WorkDayStatisticsService {
|
|
|
.addSelect('pa.avatarUrl', 'accountAvatar')
|
|
|
.addSelect('w.status', 'workType')
|
|
|
.addSelect('w.publish_time', 'publishTime')
|
|
|
- .addSelect('COALESCE(w.yesterday_play_count, 0)', 'viewsCount')
|
|
|
+ .addSelect('COALESCE(w.playCount, 0)', 'viewsCount')
|
|
|
.addSelect('COALESCE(w.yesterday_comment_count, 0)', 'commentsCount')
|
|
|
.addSelect('COALESCE(w.yesterday_share_count, 0)', 'sharesCount')
|
|
|
.addSelect('COALESCE(w.yesterday_collect_count, 0)', 'collectsCount')
|