2
0

feat(editor): Start preview from any block

This commit is contained in:
Baptiste Arnaud
2022-06-02 10:07:50 +02:00
parent 12f2e40152
commit 89d91f9114
15 changed files with 128 additions and 29 deletions

View File

@ -87,7 +87,7 @@ export const createUsers = async () => {
role: WorkspaceRole.ADMIN,
workspace: {
create: {
id: freeWorkspaceId,
id: 'free',
name: "Free user's workspace",
plan: Plan.FREE,
},
@ -98,12 +98,15 @@ export const createUsers = async () => {
})
await prisma.workspace.create({
data: {
id: 'free',
name: 'Free workspace',
id: freeWorkspaceId,
name: 'Free Shared Workspace',
plan: Plan.FREE,
members: {
createMany: {
data: [{ role: WorkspaceRole.ADMIN, userId: 'proUser' }],
data: [
{ role: WorkspaceRole.MEMBER, userId: 'proUser' },
{ role: WorkspaceRole.ADMIN, userId: 'freeUser' },
],
},
},
},