Skip to content

Commit

Permalink
fix resolver schema published
Browse files Browse the repository at this point in the history
  • Loading branch information
TuvalSimha committed Sep 12, 2024
1 parent 209d5e4 commit 5ab9503
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export const SchemaPublishAuditLog: SchemaPublishAuditLogResolvers = {
}
throw new Error('Invalid eventType');
},
schemaId: e => {
targetId: e => {
if (e.eventType === 'SCHEMA_PUBLISH') {
return e.schemaId;
return e.targetId;
}
throw new Error('Invalid eventType');
},
Expand Down

0 comments on commit 5ab9503

Please sign in to comment.