Skip to content

Commit

Permalink
fix(upsert): upsert ignores isEventsEnbaled! upsert should only emit …
Browse files Browse the repository at this point in the history
…events if enabled
  • Loading branch information
Gerald Baulig committed Oct 17, 2024
1 parent b5f5fb6 commit c301c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/ServiceBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export class ServiceBase<T extends ResourceListResponse, M extends ResourceList>
let upsertDocs = _.cloneDeep(request.items);
let upsertResponse = await this.resourceapi.upsert(
upsertDocs,
this.events,
this.isEventsEnabled && this.events,
this.name,
request.subject
);
Expand Down

0 comments on commit c301c94

Please sign in to comment.