Use merged-source instead of way-handled-source when calculating contained objects in the meta-tagging

This commit is contained in:
Pieter Vander Vennet 2021-06-21 03:25:54 +02:00
parent fb0490ec27
commit f723349e40
3 changed files with 16 additions and 14 deletions

View file

@ -15,12 +15,12 @@ export default class MetaTaggingFeatureSource implements FeatureSource {
* @param source: the source of features that should get their metatag and which should be exported again
* @param updateTrigger
*/
constructor(allFeaturesSource: FeatureSource, source: FeatureSource, updateTrigger?: UIEventSource<any>) {
constructor(allFeaturesSource: UIEventSource<{ feature: any; freshness: Date }[]>, source: FeatureSource, updateTrigger?: UIEventSource<any>) {
const self = this;
this.name = "MetaTagging of " + source.name
if(allFeaturesSource.features === undefined){
throw ("Initialize the featuresource fully first!"+allFeaturesSource.name)
if(allFeaturesSource === undefined){
throw ("UIEVentSource is undefined")
}
function update() {