diff --git a/lib/pairing.js b/lib/pairing.js index ebedc001..72e88f4c 100644 --- a/lib/pairing.js +++ b/lib/pairing.js @@ -32,8 +32,7 @@ function unpair (deviceId) { const q2 = t.none(`DELETE FROM machine_pings WHERE device_id=$1`, [deviceId]) const q3 = t.none(`DELETE FROM machine_network_heartbeat WHERE device_id=$1`, [deviceId]) const q4 = t.none(`DELETE FROM machine_network_performance WHERE device_id=$1`, [deviceId]) - const q5 = t.none(`DELETE FROM machine_diagnostics WHERE device_id=$1`, [deviceId]) - return t.batch([q1, q2, q3, q4, q5]) + return t.batch([q1, q2, q3, q4]) }) ) } diff --git a/migrations/1724242113482-drop-last-used-fkey.js b/migrations/1724242113482-drop-last-used-fkey.js index 3c3b62d7..9459ac51 100644 --- a/migrations/1724242113482-drop-last-used-fkey.js +++ b/migrations/1724242113482-drop-last-used-fkey.js @@ -1,10 +1,7 @@ const db = require('./db') exports.up = function (next) { - db.multi([ - 'ALTER TABLE customers DROP CONSTRAINT customers_last_used_machine_fkey;', - 'ALTER TABLE machine_diagnostics DROP CONSTRAINT machine_diagnostics_device_id_fkey;' - ], next) + db.multi(['ALTER TABLE customers DROP CONSTRAINT customers_last_used_machine_fkey;'], next) } exports.down = function (next) { diff --git a/package-lock.json b/package-lock.json index 09c834fc..b42340d7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "lamassu-server", - "version": "10.0.3-beta.1", + "version": "10.0.3-beta.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index f27e3e71..397f0bd7 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "lamassu-server", "description": "bitcoin atm client server protocol module", "keywords": [], - "version": "10.0.3-beta.1", + "version": "10.0.3-beta.3", "license": "./LICENSE", "author": "Lamassu (https://lamassu.is)", "dependencies": {