Skip to content

Commit

Permalink
fix: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
samaratungajs committed Aug 22, 2024
1 parent ef3b53b commit 8aeb18d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ import { Job } from '@wavezync/nestjs-pgboss';
export class MyJobHandler {
private readonly logger = new Logger(MyJobHandler.name);

constructor(private readonly pgBossService: PgBossService) {
this.pgBossService.registerJobHandler(this);
}

@Job('my-job')
async handleMyJob(job: { data: any }) {
this.logger.log('Handling job with data:', job.data);
Expand All @@ -95,10 +91,6 @@ import { PgBossService, CronJob } from '@wavezync/nestjs-pgboss';
export class MyCronJobService {
private readonly logger = new Logger(MyCronJobService.name);

constructor(private readonly pgBossService: PgBossService) {
this.pgBossService.registerJobHandler(this);
}

@CronJob('my-cron-job', '0 * * * *', { priority: 1 })
async handleCron() {
this.logger.log('Executing cron job: my-cron-job');
Expand Down

0 comments on commit 8aeb18d

Please sign in to comment.