Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into renewal
  • Loading branch information
overthestream committed Aug 27, 2024
2 parents 6f89d1f + 7ec5450 commit 7319861
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/domain/hotTopic/hotTopic.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import type { HotTopicSumResponseDto } from './dtos/HotTopicSumResponse.dto';
import type { HotTopicInfoResponseDto } from './dtos/HotTopicInfoResponse.dto';
import { User } from 'src/decorators/accessUser.decorator';
import type { JwtPayload } from 'src/interfaces/auth';
import type { PageQuery } from 'src/common/pageQuery.dto';
import { PageQuery } from 'src/common/pageQuery.dto';
import type { HotTopicRequestDto } from './dtos/HotTopicRequest.dto';
import type { HotTopicAnswerRequestDto } from './dtos/HotTopicAnswerRequest.dto';

Expand Down
4 changes: 2 additions & 2 deletions src/domain/hotTopic/hotTopic.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ export class HotTopicRepository {
const [questions, count] = await this.hotTopicRepository.findAndCount({
order: { createdAt: 'DESC' },
relations: ['answers', 'answers.likes', 'answers.user', 'likes'],
skip: (page - 1) * pageSize,
take: pageSize,
skip: Number((page - 1) * pageSize),
take: Number(pageSize),
});
const dtos = [];
await Promise.all(
Expand Down

0 comments on commit 7319861

Please sign in to comment.