databroker: changeset: prevent nil data in the deleted records (#4736)

This commit is contained in:
Denis Mishin 2023-11-10 15:04:22 -05:00 committed by GitHub
parent 6de9f12ac1
commit 15ca641b9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@ import (
"context"
"fmt"
"google.golang.org/protobuf/types/known/anypb"
"google.golang.org/protobuf/types/known/timestamppb"
)
@ -37,6 +38,7 @@ func (cs *changeSet) Remove(typ string, id string) {
Type: typ,
Id: id,
DeletedAt: cs.now,
Data: &anypb.Any{TypeUrl: typ},
})
}