From c8c5aa28c61db9c75b0cb3ff4a39f2110957303c Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Tue, 18 Nov 2025 20:42:06 -0800 Subject: [PATCH] Add a method to mark a shuttle as not at a stop --- src/repositories/shuttle/RedisShuttleRepository.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/repositories/shuttle/RedisShuttleRepository.ts b/src/repositories/shuttle/RedisShuttleRepository.ts index 15c45a5..91c1f62 100644 --- a/src/repositories/shuttle/RedisShuttleRepository.ts +++ b/src/repositories/shuttle/RedisShuttleRepository.ts @@ -423,6 +423,10 @@ export class RedisShuttleRepository extends BaseRedisRepository implements Shutt await this.redisClient.sAdd(this.shuttleIsAtStopKey, shuttleId); } + private async markShuttleAsNotAtStop(shuttleId: string) { + await this.redisClient.sRem(this.shuttleIsAtStopKey, shuttleId); + } + private async checkIfShuttleIsAtStop(shuttleId: string) { return await this.redisClient.sIsMember(this.shuttleIsAtStopKey, shuttleId); }