Browse Source

LeaderUnset mapping fix

Leszek Wiesner 3 years ago
parent
commit
93918d130c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      query-node/mappings/workingGroups.ts

+ 1 - 1
query-node/mappings/workingGroups.ts

@@ -812,7 +812,7 @@ export async function workingGroups_WorkerExited({ store, event }: EventContext
 }
 
 export async function workingGroups_LeaderUnset({ store, event }: EventContext & StoreContext): Promise<void> {
-  const group = await getWorkingGroup(store, event)
+  const group = await getWorkingGroup(store, event, ['leader'])
   const eventTime = new Date(event.blockTimestamp)
 
   const leaderUnsetEvent = new LeaderUnsetEvent({