Skip to content

Commit

Permalink
fix(firebase): Always setting apiEvent.resource on emitted store ev…
Browse files Browse the repository at this point in the history
…ents payload
  • Loading branch information
leomp12 committed May 6, 2024
1 parent eb61532 commit 2e4e6e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/firebase/src/handlers/check-store-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ export default async () => {
info(`> '${listenedEventName}' ${result.length} events`);
const resourceIdsRead: string[] = [];
result.forEach(async (apiEvent) => {
apiEvent.resource = resource;
const resourceId = apiEvent.resource_id;
if (resourceIdsRead.includes(resourceId)) {
return;
Expand Down

0 comments on commit 2e4e6e3

Please sign in to comment.