Make EventsDB not rely on Conf

This commit is contained in:
Alex Gleason
2024-09-11 13:06:20 -05:00
parent 624b6b278e
commit d2fb3fd253
14 changed files with 75 additions and 56 deletions

View File

@@ -24,7 +24,7 @@ export const policyWorker = Comlink.wrap<CustomPolicy>(
);
try {
await policyWorker.import(Conf.policy);
await policyWorker.init(Conf.policy, Conf.databaseUrl, Conf.pubkey);
console.debug(`Using custom policy: ${Conf.policy}`);
} catch (e) {
if (e.message.includes('Module not found')) {