Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
修正统计总数临时代码
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Nov 8, 2021
1 parent 0a417c7 commit 347f398
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/convert/converter/post.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export class PostService extends BaseService {
const forumIds = forumIdsQuery.map((e) => e.fid)
const postQuery = this.forumPostModel.convertPost(forumIds)
this.logger.info('统计总数')
// const postCount = await postQuery.clone().count({count: 'pid'})
const bar = this.getBar('转换回复信息', 17190566)
const postCount = await postQuery.clone().count({count: 'pid'})
const bar = this.getBar('转换回复信息', postCount[0].count)

bar.interrupt('构建用户缓存')
const userIds = await this.userModel.getAllId()
Expand Down

0 comments on commit 347f398

Please sign in to comment.