mirror of
https://github.com/safing/portbase
synced 2025-09-01 01:59:48 +00:00
Fix runtime single record provider key check
This commit is contained in:
parent
b50f922fb5
commit
0dcc397bf3
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ func (sr *singleRecordReader) Set(_ record.Record) (record.Record, error) {
|
|||
// Get implements ValueProvider.Get and returns the wrapped record.Record
|
||||
// but only if keyOrPrefix exactly matches the records database key.
|
||||
func (sr *singleRecordReader) Get(keyOrPrefix string) ([]record.Record, error) {
|
||||
if keyOrPrefix != sr.Record.Key() {
|
||||
if keyOrPrefix != sr.Record.DatabaseKey() {
|
||||
return nil, nil
|
||||
}
|
||||
return []record.Record{sr.Record}, nil
|
||||
|
|
Loading…
Add table
Reference in a new issue