diff --git a/prisma/mysql/seed.js b/prisma/mysql/seed.js deleted file mode 120000 index fc84d113..00000000 --- a/prisma/mysql/seed.js +++ /dev/null @@ -1 +0,0 @@ -../seed.js \ No newline at end of file diff --git a/prisma/postgresql/seed.js b/prisma/postgresql/seed.js deleted file mode 120000 index fc84d113..00000000 --- a/prisma/postgresql/seed.js +++ /dev/null @@ -1 +0,0 @@ -../seed.js \ No newline at end of file diff --git a/prisma/seed.js b/prisma/seed.js index b954e5b6..12f59004 100644 --- a/prisma/seed.js +++ b/prisma/seed.js @@ -8,13 +8,12 @@ const hashPassword = password => { }; async function main() { - const password = hashPassword(process.env.ADMIN_PASSWORD || 'umami'); await prisma.account.upsert({ where: { username: 'admin' }, update: {}, create: { username: 'admin', - password: password, + password: hashPassword(process.env.ADMIN_PASSWORD || 'umami'), is_admin: true, }, });