mirror of
https://github.com/standardnotes/server
synced 2026-07-14 00:01:54 -04:00
fix(workspaces): allow type of workspace to come from parameters
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { WorkspaceAccessLevel, WorkspaceType } from '@standardnotes/common'
|
||||
import 'reflect-metadata'
|
||||
import { WorkspaceAccessLevel, WorkspaceType } from '@standardnotes/common'
|
||||
|
||||
import { ProjectorInterface } from '../Domain/Projection/ProjectorInterface'
|
||||
import { WorkspaceProjection } from '../Domain/Projection/WorkspaceProjection'
|
||||
import { WorkspaceUserProjection } from '../Domain/Projection/WorkspaceUserProjection'
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
WorkspaceKeyshareInitiatingRequestParams,
|
||||
WorkspaceKeyshareInitiatingResponse,
|
||||
} from '@standardnotes/api'
|
||||
import { Uuid, WorkspaceAccessLevel, WorkspaceType } from '@standardnotes/common'
|
||||
import { Uuid, WorkspaceAccessLevel } from '@standardnotes/common'
|
||||
|
||||
import TYPES from '../Bootstrap/Types'
|
||||
import { CreateWorkspace } from '../Domain/UseCase/CreateWorkspace/CreateWorkspace'
|
||||
@@ -93,7 +93,7 @@ export class WorkspacesController implements WorkspaceServerInterface {
|
||||
encryptedWorkspaceKey: params.encryptedWorkspaceKey,
|
||||
publicKey: params.publicKey,
|
||||
name: params.workspaceName,
|
||||
type: WorkspaceType.Root,
|
||||
type: params.workspaceType,
|
||||
ownerUuid: params.ownerUuid as string,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user