chore(seed): align seed.ts with seed.js using correct domain and roles
This commit is contained in:
parent
d8d9c407d8
commit
7e8e070d11
1 changed files with 8 additions and 1 deletions
|
|
@ -28,6 +28,13 @@ async function main() {
|
|||
inventory: { view: true }
|
||||
},
|
||||
isSystem: true
|
||||
},
|
||||
{
|
||||
name: 'Worker',
|
||||
permissions: {
|
||||
tasks: { view: true, complete: true }
|
||||
},
|
||||
isSystem: true
|
||||
}
|
||||
];
|
||||
|
||||
|
|
@ -42,7 +49,7 @@ async function main() {
|
|||
const ownerRole = await prisma.role.findUnique({ where: { name: 'Facility Owner' } });
|
||||
|
||||
// Create Owner
|
||||
const ownerEmail = 'admin@runfoo.com';
|
||||
const ownerEmail = 'admin@runfoo.run';
|
||||
const existingOwner = await prisma.user.findUnique({ where: { email: ownerEmail } });
|
||||
|
||||
if (!existingOwner) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue