Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Update prisma seed files.

Mike Caoafe68f6e2112
diff --git a/prisma/mysql/seed.js b/prisma/mysql/seed.js
deleted file mode 120000
index fc84d1134..000000000
--- 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 fc84d1134..000000000
--- 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 b954e5b6c..12f59004f 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,
},
});