mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-02 11:56:02 +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"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
"google.golang.org/protobuf/types/known/anypb"
|
||||||
"google.golang.org/protobuf/types/known/timestamppb"
|
"google.golang.org/protobuf/types/known/timestamppb"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -37,6 +38,7 @@ func (cs *changeSet) Remove(typ string, id string) {
|
||||||
Type: typ,
|
Type: typ,
|
||||||
Id: id,
|
Id: id,
|
||||||
DeletedAt: cs.now,
|
DeletedAt: cs.now,
|
||||||
|
Data: &anypb.Any{TypeUrl: typ},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue