From ed0243ec398acca26490ef27cbe3cfe5fa9b95a6 Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 3 Aug 2025 20:08:01 +0200 Subject: [PATCH] fix: remove updated_at field from password reset query MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - The events table doesn't have an updated_at column - Fixes PostgreSQL error 42703 when resetting passwords - Password hash update now works correctly 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- backend/src/routes/adminEvents.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/routes/adminEvents.js b/backend/src/routes/adminEvents.js index b856415..17175df 100644 --- a/backend/src/routes/adminEvents.js +++ b/backend/src/routes/adminEvents.js @@ -534,8 +534,7 @@ router.post('/:id/reset-password', adminAuth, async (req, res) => { await db('events') .where('id', id) .update({ - password_hash: passwordHash, - updated_at: new Date() + password_hash: passwordHash }); // Log activity