scrapix
scrapix copied to clipboard
Where is `only_type` located in the schema settings option
Previously the only_type
was fetched in this.config.schema_config?.only_type
, nonetheless, using typescript it appears the config is located in this.config.schema?.only_type
.
This should be tested.
if (this.config.schema?.only_type) {
// TODO: Might be an error, should be `schema.only_type` and not `schema_config.only_type`
// Leaving old code in comment in case it is not an error
// if (data["@type"] !== this.config.schema_config?.only_type) return;
if (data["@type"] !== this.config.schema?.only_type) return;
}