Files
BetterDesk/web-nodejs/services
UNITRONIX 9436e90f8a Fix user ID type mismatch causing broken buttons (#85)
- users.js: Change parseInt(userId, 10) to Number() on both sides of
  comparison to handle BigInt/string/number ID types correctly
- dbAdapter.js: Wrap all lastInsertRowid with Number() to prevent
  BigInt leak from better-sqlite3 v9+ (BigInt === Number is always false)

Root cause: better-sqlite3 v9+ returns lastInsertRowid as BigInt.
If user objects with BigInt IDs ended up in the users array, strict
equality (===) with parseInt result (Number) always fails silently,
making edit/reset-password/delete buttons appear unresponsive.
2026-04-06 21:07:40 +02:00
..
2026-03-24 00:26:25 +01:00
2026-03-24 00:26:25 +01:00
2026-03-24 00:26:25 +01:00
2026-03-24 00:26:25 +01:00