Skip to content

Commit

Permalink
fix(authorization): jobs esm
Browse files Browse the repository at this point in the history
  • Loading branch information
kkopanidis committed Feb 12, 2024
1 parent 6b01555 commit 392187c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/authorization/src/jobs/constructRelationIndex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type ConstructRelationIndexWorkerData = {
relation: { subject: string; relation: string; object: string };
};

module.exports = async (job: SandboxedJob<ConstructRelationIndexWorkerData>) => {
export default async (job: SandboxedJob<ConstructRelationIndexWorkerData>) => {
const { relation } = job.data;
if (!grpcSdk) {
if (!process.env.CONDUIT_SERVER) throw new Error('No serverUrl provided!');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type ConstructRelationIndexWorkerData = {
achievedPermissions: string[];
};

module.exports = async (job: SandboxedJob<ConstructRelationIndexWorkerData>) => {
export default async (job: SandboxedJob<ConstructRelationIndexWorkerData>) => {
const {
object,
subject,
Expand Down

0 comments on commit 392187c

Please sign in to comment.