Clean up development artifacts and obsolete code
Dependencies: - Remove unused bcrypt package (only bcryptjs is used) - Remove @types/bcrypt (only @types/bcryptjs needed) Scripts cleanup: - Delete migration scripts (one-time use, already applied): - add-mqtt-tables.js - add-parent-user-column.js - migrate-device-ownership.js - fix-acl-topic-patterns.js - update-acl-permission.js - Delete personal test/debug scripts: - reset-joachim-password.js - test-joachim-password.js - check-admin.js - check-user-password.js - test-password.js - test-device-access.js - test-user-visibility.js - Move change-mqtt-admin-password.sh to scripts/ directory Code cleanup: - Remove debug console.log statements from: - app/api/locations/ingest/route.ts - components/map/MapView.tsx (2 debug logs) - lib/db.ts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -376,15 +376,6 @@ export const locationDb = {
|
||||
const batteryValue = loc.battery !== undefined && loc.battery !== null ? Number(loc.battery) : null;
|
||||
const speedValue = loc.speed !== undefined && loc.speed !== null ? Number(loc.speed) : null;
|
||||
|
||||
// Debug log
|
||||
console.log('[DB Insert Debug]', {
|
||||
username: loc.username,
|
||||
speed_in: loc.speed,
|
||||
speed_out: speedValue,
|
||||
battery_in: loc.battery,
|
||||
battery_out: batteryValue
|
||||
});
|
||||
|
||||
const result = stmt.run(
|
||||
loc.latitude,
|
||||
loc.longitude,
|
||||
|
||||
Reference in New Issue
Block a user