Skip to content

Commit

Permalink
Revert "Changed attestorOrganiosation ID"
Browse files Browse the repository at this point in the history
This reverts commit 77ce63e.
  • Loading branch information
aminlatifi committed Jun 6, 2024
1 parent 77ce63e commit 6f88321
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/controllers/authorizeAttestation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ export const handleAuthorize = async (
recipient,
} = EASContract.events.Attested.decode(log);

const organisationId = schemaUid.toLocaleLowerCase();
const organisation = await ctx.store.findOneBy(Organisation, {
id: organisationId,
id: schemaUid.toLocaleLowerCase(),
issuer: issuer.toLocaleLowerCase(),
});

Expand All @@ -34,7 +33,7 @@ export const handleAuthorize = async (

const attestor = await getAttestor(ctx, accountAddress);

const key = `${organisationId}-${accountAddress}`;
const key = uid.toLocaleLowerCase();

let attestorOrganisation: AttestorOrganisation = new AttestorOrganisation({
id: key,
Expand Down

0 comments on commit 6f88321

Please sign in to comment.