forked from Yara724/api
fanavaran lookups done
This commit is contained in:
@@ -61,12 +61,14 @@ export class LookupsService {
|
||||
const clientKey = this.activeClientKey();
|
||||
const definition = this.findRemoteLookup(lookupName);
|
||||
|
||||
// Parsian: file → lookups collection → Fanavaran (default inside FanavaranLookupService)
|
||||
// Tejaratno: file → Fanavaran → DB on API failure
|
||||
return this.fanavaranLookupService.getRemoteLookup(
|
||||
clientKey,
|
||||
definition.url,
|
||||
definition.cacheFile,
|
||||
clientKey === "tejaratno"
|
||||
? async () => this.getLookup(lookupName)
|
||||
? { dbSource: () => this.getLookup(lookupName) }
|
||||
: undefined,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user