Skip to content

Commit

Permalink
feature: fix for basic resource not saving sequence no. correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
akeemphilbert committed Apr 16, 2024
1 parent 83e334b commit 59c0765
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rest/gorm.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ func (e *GORMProjection) GetEventHandlers() []EventHandlerConfig {
// ResourceUpdateHandler handles Create Update operations
func (e *GORMProjection) ResourceUpdateHandler(ctx context.Context, logger Log, event *Event, options *EventOptions) (err error) {
basicResource := new(BasicResource)
basicResource.Metadata.SequenceNo = event.Meta.SequenceNo
err = json.Unmarshal(event.Payload, &basicResource)
if err != nil {
return err
Expand Down

0 comments on commit 59c0765

Please sign in to comment.