Skip to content

Commit

Permalink
fix: publishing direction and date
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Dec 16, 2023
1 parent d368462 commit c0e5b0a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@ class Cli {
const timing: Record<string, number> = {};
for (const s of sch) timing[s.departure_time] = s.available_seats;
const cmd = await this.redis.publish(
`ktmb:schedule:${date}`,
`ktmb:schedule:${from}:${date}`,
JSON.stringify(timing),
);
this.logger.info({ cmd, index: index++ }, "Published schedule");
}
this.logger.info({ index: index++ }, "Watch complete");
span.end();
Expand Down

0 comments on commit c0e5b0a

Please sign in to comment.