24 lines
407 B
TypeScript
24 lines
407 B
TypeScript
import prisma from '../prisma/client.ts'
|
|
|
|
async function main() {
|
|
await prisma.channel.upsert({
|
|
where: { id: 'default' },
|
|
update: {},
|
|
create: {
|
|
id: 'default',
|
|
name: 'Default',
|
|
persistent: true,
|
|
},
|
|
})
|
|
}
|
|
|
|
main()
|
|
.then(async () => {
|
|
await prisma.$disconnect()
|
|
})
|
|
.catch(async (e) => {
|
|
console.error(e)
|
|
await prisma.$disconnect()
|
|
process.exit(1)
|
|
})
|