Skip to content

Commit

Permalink
fix: context updated event now does stores correct fields (#5705)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus authored Dec 20, 2023
1 parent f3ca4f0 commit 8e7e389
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/services/context-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,13 @@ class ContextService {

// update
await this.contextFieldStore.update(value);

const { createdAt, sortOrder, ...previousContextField } = contextField;
await this.eventService.storeEvent({
type: CONTEXT_FIELD_UPDATED,
createdBy: userName,
createdByUserId: updatedByUserId,
preData: contextField,
preData: previousContextField,
data: value,
});
}
Expand Down

0 comments on commit 8e7e389

Please sign in to comment.