mirror of
https://github.com/l5yth/potato-mesh.git
synced 2026-08-11 03:12:57 +02:00
Avoid mutating frozen node query results (#324)
This commit is contained in:
@@ -159,7 +159,7 @@ module PotatoMesh
|
||||
params << limit
|
||||
|
||||
rows = db.execute(sql, params)
|
||||
rows.select! do |r|
|
||||
rows = rows.select do |r|
|
||||
last_candidate = [r["last_heard"], r["position_time"], r["first_heard"]]
|
||||
.map { |value| coerce_integer(value) }
|
||||
.compact
|
||||
|
||||
Reference in New Issue
Block a user