Add a method to mark a shuttle as not at a stop

This commit is contained in:
2025-11-18 20:42:06 -08:00
parent 78cf60af4a
commit c8c5aa28c6

View File

@@ -423,6 +423,10 @@ export class RedisShuttleRepository extends BaseRedisRepository implements Shutt
await this.redisClient.sAdd(this.shuttleIsAtStopKey, shuttleId); await this.redisClient.sAdd(this.shuttleIsAtStopKey, shuttleId);
} }
private async markShuttleAsNotAtStop(shuttleId: string) {
await this.redisClient.sRem(this.shuttleIsAtStopKey, shuttleId);
}
private async checkIfShuttleIsAtStop(shuttleId: string) { private async checkIfShuttleIsAtStop(shuttleId: string) {
return await this.redisClient.sIsMember(this.shuttleIsAtStopKey, shuttleId); return await this.redisClient.sIsMember(this.shuttleIsAtStopKey, shuttleId);
} }