feat: Implement AI Chat Agent, Email Notifications, and UI enhancements
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
|
||||
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();
|
||||
Reference in New Issue
Block a user