mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-24 18:26:20 +01:00
Update prisma seed files.
This commit is contained in:
parent
f0b207f6a2
commit
afe68f6e21
@ -1 +0,0 @@
|
||||
../seed.js
|
@ -1 +0,0 @@
|
||||
../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,
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user