Skip to content

Commit

Permalink
feat(be): add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
harisato committed Sep 8, 2023
1 parent f037c59 commit cf898d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/task/task.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class TasksService {
},
}));

await this.graphqlSvc.query(
const result = await this.graphqlSvc.query(
this.configService.get<string>('graphql.endpoint'),
'',
`mutation IncreaseChaptersView($updates: [chapters_updates!] = {where: {manga_id: {_eq: 10}, chapter_number: {_eq: 10}}, _inc: {views: 10}}) {
Expand All @@ -137,6 +137,7 @@ export class TasksService {
);

this.logger.debug('Update chapter views', updates);
this.logger.debug(`Update result: ${JSON.stringify(result)}`);
}

async runReport() {
Expand Down

0 comments on commit cf898d2

Please sign in to comment.