add geninvites script
This commit is contained in:
parent
cc7d9d734c
commit
13eda4c120
|
@ -0,0 +1,14 @@
|
||||||
|
const { PrismaClient } = require('@prisma/client')
|
||||||
|
|
||||||
|
const prisma = new PrismaClient();
|
||||||
|
|
||||||
|
(async () => {
|
||||||
|
for (let i = 0; i < process.env.NUM; i++) {
|
||||||
|
await prisma.invite.create({
|
||||||
|
data: {
|
||||||
|
userId: Number(process.env.USER_ID),
|
||||||
|
gift: Number(process.env.GIFT)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})()
|
Loading…
Reference in New Issue