Skip to content

Commit

Permalink
databroker: changeset: prevent nil data in the deleted records
Browse files Browse the repository at this point in the history
  • Loading branch information
wasaga committed Nov 10, 2023
1 parent 6de9f12 commit f1d5bb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/grpc/databroker/changeset.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"

"google.golang.org/protobuf/types/known/anypb"
"google.golang.org/protobuf/types/known/timestamppb"
)

Expand Down Expand Up @@ -37,6 +38,7 @@ func (cs *changeSet) Remove(typ string, id string) {
Type: typ,
Id: id,
DeletedAt: cs.now,
Data: &anypb.Any{TypeUrl: typ},
})
}

Expand Down

0 comments on commit f1d5bb7

Please sign in to comment.