mirror of
https://github.com/safing/portbase
synced 2026-04-28 20:00:33 +00:00
Fix database/query issue
This commit is contained in:
parent
4bfff91279
commit
15ea65a61d
2 changed files with 4 additions and 3 deletions
|
|
@ -125,8 +125,8 @@ func (q *Query) MatchesAccessor(acc accessor.Accessor) bool {
|
|||
|
||||
// Matches checks whether the query matches the supplied database record.
|
||||
func (q *Query) Matches(r record.Record) bool {
|
||||
if q.MatchesKey(r.DatabaseKey()) {
|
||||
return true
|
||||
if !q.MatchesKey(r.DatabaseKey()) {
|
||||
return false
|
||||
}
|
||||
return q.MatchesRecord(r)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue