diff --git a/modules/authorization/src/jobs/constructRelationIndex.ts b/modules/authorization/src/jobs/constructRelationIndex.ts index ab58a7878..bb49f8bf8 100644 --- a/modules/authorization/src/jobs/constructRelationIndex.ts +++ b/modules/authorization/src/jobs/constructRelationIndex.ts @@ -9,7 +9,7 @@ type ConstructRelationIndexWorkerData = { relation: { subject: string; relation: string; object: string }; }; -module.exports = async (job: SandboxedJob) => { +export default async (job: SandboxedJob) => { const { relation } = job.data; if (!grpcSdk) { if (!process.env.CONDUIT_SERVER) throw new Error('No serverUrl provided!'); diff --git a/modules/authorization/src/jobs/processPossibleConnections.ts b/modules/authorization/src/jobs/processPossibleConnections.ts index 2ddb67ecd..e63d669ec 100644 --- a/modules/authorization/src/jobs/processPossibleConnections.ts +++ b/modules/authorization/src/jobs/processPossibleConnections.ts @@ -15,7 +15,7 @@ type ConstructRelationIndexWorkerData = { achievedPermissions: string[]; }; -module.exports = async (job: SandboxedJob) => { +export default async (job: SandboxedJob) => { const { object, subject,