mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-11 13:49:03 +00:00
9436e90f8a
- 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.