import { storage } from "../server/storage"; async function run() { try { const user = await storage.getUserByUsername("admin"); if (user) { console.log("User found:", { id: user.id, username: user.username, role: user.role, aiEnabled: user.aiEnabled, // Check if property exists hasAiEnabled: "aiEnabled" in user }); } else { console.log("User 'admin' not found"); } process.exit(0); } catch (e) { console.error(e); process.exit(1); } } run();