chore: clean up repo for public release
- Remove BMAD framework, IDE configs, dev screenshots, test files, internal docs, and backup files - Rename keep-notes/ to memento-note/ - Update all references from keep-notes to memento-note - Add Apache 2.0 license with Commons Clause (non-commercial restriction) - Add clean .gitignore and .env.docker.example
This commit is contained in:
24
memento-note/scripts/grant-all-admins.ts
Normal file
24
memento-note/scripts/grant-all-admins.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
import { prisma } from '../lib/prisma'
|
||||
|
||||
async function main() {
|
||||
console.log('👑 Granting ADMIN access to ALL users...')
|
||||
|
||||
try {
|
||||
const result = await prisma.user.updateMany({
|
||||
data: {
|
||||
role: 'ADMIN'
|
||||
}
|
||||
})
|
||||
|
||||
console.log(`✅ Success! Updated ${result.count} users to ADMIN role.`)
|
||||
|
||||
} catch (error) {
|
||||
console.error('❌ Error updating users:', error)
|
||||
process.exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
main()
|
||||
.catch(e => console.error(e))
|
||||
.finally(async () => await prisma.$disconnect())
|
||||
Reference in New Issue
Block a user