From 4aa12511e89bcb9c31159dff968c4d1291894fb9 Mon Sep 17 00:00:00 2001 From: vanne Date: Wed, 1 Jul 2026 08:57:07 +0700 Subject: [PATCH] refactor: clean up formatting in scratch/patch_device_details.js --- scratch/patch_device_details.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scratch/patch_device_details.js b/scratch/patch_device_details.js index b68cb70..1d0f352 100644 --- a/scratch/patch_device_details.js +++ b/scratch/patch_device_details.js @@ -1,18 +1,18 @@ // patch_device_details.js — replaces fetchDeviceDetails in netify.js -const fs = require('fs'); +const fs = require('fs'); const path = require('path'); const filePath = path.join(__dirname, '..', 'backend', 'netify.js'); let content = fs.readFileSync(filePath, 'utf8'); const startMarker = '// Fetch data for a specific device IP — from local DB flows + intel tables\r\nasync function fetchDeviceDetails(ip) {'; -const endMarker = '}\r\n\r\n// Fetch data for a specific application'; +const endMarker = '}\r\n\r\n// Fetch data for a specific application'; const startIdx = content.indexOf(startMarker); -const endIdx = content.indexOf('// Fetch data for a specific application'); +const endIdx = content.indexOf('// Fetch data for a specific application'); if (startIdx === -1) { console.error('START not found'); process.exit(1); } -if (endIdx === -1) { console.error('END not found'); process.exit(1); } +if (endIdx === -1) { console.error('END not found'); process.exit(1); } console.log(`Found fetchDeviceDetails: char ${startIdx} → ${endIdx}`);