mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
PolicyWorker: mock Deno.env
This commit is contained in:
parent
a1585d81aa
commit
6b66e61ee9
1 changed files with 3 additions and 0 deletions
|
|
@ -6,6 +6,9 @@ import * as Comlink from 'comlink';
|
||||||
import { DittoDB } from '@/db/DittoDB.ts';
|
import { DittoDB } from '@/db/DittoDB.ts';
|
||||||
import { EventsDB } from '@/storages/EventsDB.ts';
|
import { EventsDB } from '@/storages/EventsDB.ts';
|
||||||
|
|
||||||
|
// @ts-ignore Don't try to access the env from this worker.
|
||||||
|
Deno.env = new Map<string, string>();
|
||||||
|
|
||||||
/** Serializable object the worker can use to set up the state. */
|
/** Serializable object the worker can use to set up the state. */
|
||||||
interface PolicyInit {
|
interface PolicyInit {
|
||||||
/** Path to the policy module (https, jsr, file, etc) */
|
/** Path to the policy module (https, jsr, file, etc) */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue