feat(users): add admin user management and bootstrap seed
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import prisma from "../src/lib/prisma"
|
||||
|
||||
import { bootstrapAdmin } from "./bootstrap-admin"
|
||||
|
||||
async function main() {
|
||||
await bootstrapAdmin(prisma)
|
||||
}
|
||||
|
||||
main()
|
||||
.then(async () => {
|
||||
await prisma.$disconnect()
|
||||
})
|
||||
.catch(async (e) => {
|
||||
console.error(e)
|
||||
await prisma.$disconnect()
|
||||
process.exit(1)
|
||||
})
|
||||
Reference in New Issue
Block a user