fix: update masonry grid sizing logic and notebook list padding
This commit is contained in:
25
keep-notes/scripts/check-users.ts
Normal file
25
keep-notes/scripts/check-users.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
import { prisma } from '../lib/prisma'
|
||||
|
||||
async function main() {
|
||||
console.log('🔍 Checking users in database...')
|
||||
console.log('Database URL used:', process.env.DATABASE_URL || "file:./dev.db")
|
||||
|
||||
const users = await prisma.user.findMany()
|
||||
|
||||
if (users.length === 0) {
|
||||
console.log('❌ No users found in database!')
|
||||
} else {
|
||||
console.log(`✅ Found ${users.length} users:`)
|
||||
console.table(users.map(u => ({
|
||||
email: u.email,
|
||||
role: u.role,
|
||||
id: u.id,
|
||||
hasPassword: !!u.password
|
||||
})))
|
||||
}
|
||||
}
|
||||
|
||||
main()
|
||||
.catch(e => console.error(e))
|
||||
.finally(async () => await prisma.$disconnect())
|
||||
Reference in New Issue
Block a user