Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Xen0Xys committed May 24, 2024
2 parents 23f30b3 + f94196c commit d8067dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/common/middlewares/logger.middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ export class LoggerMiddleware implements NestMiddleware{
const nRes = res as any;
const resSize = nRes._contentLength || "0";
const intResSize = parseInt(resSize);
if(!path.includes("/api/v")) // TODO: Fix that
return;
LoggerMiddleware.logger.log(`${httpOrHttps} ${method} ${path} ${statusCode} ${duration}ms ${intResSize}`);
LoggerMiddleware.requestTimeLogger(path, method, duration);
}catch(e){
Expand Down
5 changes: 4 additions & 1 deletion src/modules/webtoon/webtoon/webtoon-database.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ export class WebtoonDatabaseService{

async getWebtoons(): Promise<LightWebtoonResponse[]>{
const webtoons: any = await this.prismaService.webtoons.findMany({
orderBy: {
title: "asc"
},
include: {
thumbnail: true,
genres: {
Expand Down Expand Up @@ -314,7 +317,7 @@ export class WebtoonDatabaseService{
thumbnail: true
},
orderBy: {
number: "asc"
number: "desc"
},
skip: (chunkNumber - 1) * this.CHUNK_SIZE,
take: this.CHUNK_SIZE
Expand Down

0 comments on commit d8067dd

Please sign in to comment.