From c0e5b0a29d3e53442b082a66777fc55ac3906fff Mon Sep 17 00:00:00 2001 From: kirinnee Date: Sat, 16 Dec 2023 10:20:00 +0800 Subject: [PATCH] fix: publishing direction and date --- src/cli/cli.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cli/cli.ts b/src/cli/cli.ts index ff43d17..85bf164 100644 --- a/src/cli/cli.ts +++ b/src/cli/cli.ts @@ -82,10 +82,9 @@ class Cli { const timing: Record = {}; 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();