mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
add 'publish' code to addOrUpdateEta
This commit is contained in:
@@ -152,6 +152,10 @@ export class UnoptimizedInMemoryRepository implements GetterSetterRepository {
|
||||
} else {
|
||||
this.etas.push(eta);
|
||||
}
|
||||
|
||||
this.subscribers.forEach(subscriber => {
|
||||
subscriber(eta);
|
||||
});
|
||||
}
|
||||
|
||||
private async removeEntityByMatcherIfExists<T>(callback: (value: T) => boolean, arrayToSearchIn: T[]) {
|
||||
|
||||
Reference in New Issue
Block a user