Received PATCH request for user update: { authenticated: true, userId: '8', currentUser: 7, userRole: 'admin', headers: { host: '9b89bc69-4f57-477a-a4e2-2880e8cb8ec5-00-3i30iqd56py7z.spock.replit.dev', 'user-agent': 'PostmanRuntime/7.43.0', 'content-length': '499', accept: '*/*', 'accept-encoding': 'gzip, deflate, br', authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NywidXNlcm5hbWUiOiJhZG1pbiIsInJvbGUiOiJhZG1pbiIsImlhdCI6MTc0MDgyNDAwMCwiZXhwIjoxNzQwOTEwNDAwfQ.-cKzZ6dgTiLJdChM8Ijk4VhYxq3wskCIhIqymU6m6oc', 'cache-control': 'no-cache', 'content-type': 'application/json', cookie: 'connect.sid=s%3AWN-8Env9VZXoV88xxT4V8NR60chkZUTM.yCAorOZVxajpKDNQJCE12KjWaextJvLyQRd5BzxZ6Ho', 'postman-token': '244649e6-4b1f-4c40-b52a-6c89a1e7df31', 'x-forwarded-for': '37.210.80.26, 10.82.1.80', 'x-forwarded-proto': 'https', 'x-replit-user-bio': '', 'x-replit-user-id': '', 'x-replit-user-name': '', 'x-replit-user-profile-image': '', 'x-replit-user-roles': '', 'x-replit-user-teams': '', 'x-replit-user-url': '' }, body: { id: 8, username: 'organizer', name: 'Event Organizer', organization: 'Unknown Organization zoom', position: 'Unknown Position', phoneNumber: null, email: 'organizer@example.com', role: 'organizer', isActive: true, profileImage: 'https://placehold.co/400x400?text=Organizer', sessionId: null, createdAt: '2025-02-24T20:47:11.050Z', lastLogin: null } } Updating user with data: { id: 8, username: 'organizer', name: 'Event Organizer', organization: 'Unknown Organization zoom', position: 'Unknown Position', phoneNumber: null, email: 'organizer@example.com', role: 'organizer', isActive: true, profileImage: 'https://placehold.co/400x400?text=Organizer', sessionId: null, createdAt: '2025-02-24T20:47:11.050Z', lastLogin: null } Updating user 8 with data: { role: 'organizer', isActive: true, profileImage: 'https://placehold.co/400x400?text=Organizer', organization: 'Unknown Organization zoom', position: 'Unknown Position', phoneNumber: null, email: 'organizer@example.com', name: 'Event Organizer', sessionId: 0 } Error updating user 8: error: insert or update on table "users" violates foreign key constraint "users_session_id_fkey" at file:///home/runner/workspace/node_modules/@neondatabase/serverless/index.mjs:1345:74 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async NeonPreparedQuery.execute (/home/runner/workspace/node_modules/src/neon-serverless/session.ts:102:18) at async DatabaseStorage.updateUser (/home/runner/workspace/server/storage.ts:220:22) at async (/home/runner/workspace/server/routes.ts:723:29) { length: 254, severity: 'ERROR', code: '23503', detail: 'Key (session_id)=(0) is not present in table "sessions".', hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'public', table: 'users', column: undefined, dataType: undefined, constraint: 'users_session_id_fkey', file: 'ri_triggers.c', line: '2608', routine: 'ri_ReportViolation' } Error updating user: error: insert or update on table "users" violates foreign key constraint "users_session_id_fkey" at file:///home/runner/workspace/node_modules/@neondatabase/serverless/index.mjs:1345:74 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async NeonPreparedQuery.execute (/home/runner/workspace/node_modules/src/neon-serverless/session.ts:102:18) at async DatabaseStorage.updateUser (/home/runner/workspace/server/storage.ts:220:22) at async (/home/runner/workspace/server/routes.ts:723:29) { length: 254, severity: 'ERROR', code: '23503', detail: 'Key (session_id)=(0) is not present in table "sessions".', hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'public', table: 'users', column: undefined, dataType: undefined, constraint: 'users_session_id_fkey', file: 'ri_triggers.c', line: '2608', routine: 'ri_ReportViolation' } 1:34:05 PM [express] PATCH /api/users/8 400 in 235ms :: {"message":"insert or update on table \"user…