Fix callback scope issue in database user creation - rename nested callback parameter to avoid conflict

This commit is contained in:
Ryderjj89
2025-09-13 17:43:41 -04:00
parent 53245ca662
commit 5434fa6dc0

View File

@@ -112,8 +112,8 @@ const userOps = {
db.run(
'INSERT INTO user_preferences (user_id) VALUES (?)',
[newUser.id],
(err) => {
if (err) console.error('Error creating default preferences:', err);
(prefErr) => {
if (prefErr) console.error('Error creating default preferences:', prefErr);
callback(null, newUser);
}
);