diff --git a/src/storage/zone.cr b/src/storage/zone.cr index 7a7e228..9aa34b7 100644 --- a/src/storage/zone.cr +++ b/src/storage/zone.cr @@ -625,13 +625,13 @@ class DNSManager::Storage::Zone def get_rr(rrid : UInt32) : ResourceRecord? @resources.each do |rr| - return rr if rr.rrid = rrid + return rr if rr.rrid == rrid end end def update_rr(rr : ResourceRecord) puts "updating rr #{rr.rrid}" - @resources.select! { |x| x.rrid == rr.rrid } + @resources.select! { |x| x.rrid != rr.rrid } @resources << rr end