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); }