mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-16 23:40:32 +00:00
fix incorrect matcher for addOrUpdateEta
This commit is contained in:
@@ -127,7 +127,7 @@ export class UnoptimizedInMemoryRepository implements Repository {
|
||||
}
|
||||
|
||||
public async addOrUpdateEta(eta: IEta): Promise<void> {
|
||||
const index = this.etas.findIndex((e) => e.id === eta.id);
|
||||
const index = this.etas.findIndex((e) => e.stopId === eta.stopId && e.shuttleId === eta.shuttleId);
|
||||
if (index !== -1) {
|
||||
this.etas[index] = eta;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user