added packages into dockploy 5
This commit is contained in:
@@ -18,6 +18,12 @@ import * as bcrypt from 'bcryptjs';
|
||||
const prisma = new PrismaClient();
|
||||
|
||||
async function main() {
|
||||
const existingAdmins = await prisma.adminUser.count();
|
||||
if (existingAdmins > 0 && process.env.RUN_SEED !== 'force') {
|
||||
console.log('Seed skipped; admin users already exist');
|
||||
return;
|
||||
}
|
||||
|
||||
console.log('Seeding fabric_trade database...');
|
||||
|
||||
await prisma.productFavorite.deleteMany();
|
||||
|
||||
Reference in New Issue
Block a user