mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
Add a method to mark a shuttle as not at a stop
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user