mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 18:36:30 +02:00
databroker: changeset: prevent nil data in the deleted records (#4736)
This commit is contained in:
parent
6de9f12ac1
commit
15ca641b9c
1 changed files with 2 additions and 0 deletions
|
@ -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},
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue