mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
rename to IEntityWithId
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { GetterSetterRepository } from "./GetterSetterRepository";
|
import { GetterSetterRepository } from "./GetterSetterRepository";
|
||||||
import {
|
import {
|
||||||
IEntityWithIdAndOptionalTimestamp,
|
IEntityWithId,
|
||||||
IEta,
|
IEta,
|
||||||
IOrderedStop,
|
IOrderedStop,
|
||||||
IRoute,
|
IRoute,
|
||||||
@@ -82,7 +82,7 @@ export class UnoptimizedInMemoryRepository implements GetterSetterRepository {
|
|||||||
return this.orderedStops.filter((value) => value.routeId === routeId);
|
return this.orderedStops.filter((value) => value.routeId === routeId);
|
||||||
}
|
}
|
||||||
|
|
||||||
private findEntityById<T extends IEntityWithIdAndOptionalTimestamp>(entityId: string, arrayToSearchIn: T[]) {
|
private findEntityById<T extends IEntityWithId>(entityId: string, arrayToSearchIn: T[]) {
|
||||||
return this.findEntityByMatcher((value) => value.id === entityId, arrayToSearchIn);
|
return this.findEntityByMatcher((value) => value.id === entityId, arrayToSearchIn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user