Cloud collaborator refactoring (#6424)

This commit is contained in:
Alexander Onnikov
2024-08-29 15:10:37 +07:00
committed by GitHub
parent 42b19c39c7
commit 4ff8a4559f
52 changed files with 762 additions and 998 deletions
+1
View File
@@ -8,6 +8,7 @@ import { HtmlConversionBackend } from './convert/convert'
export interface Config {
doc: string
token: string
collaborator?: string
collaboratorURL: string
uploadURL: string
workspaceId: WorkspaceId
+3
View File
@@ -50,6 +50,8 @@ export function docImportTool (): void {
process.exit(1)
}
const collaborator = process.env.COLLABORATOR
const uploadUrl = process.env.UPLOAD_URL ?? '/files'
const mongodbUri = process.env.MONGO_URL
@@ -105,6 +107,7 @@ export function docImportTool (): void {
uploadURL: uploadUrl,
storageAdapter,
collaboratorURL: collaboratorUrl,
collaborator,
token: generateToken(systemAccountEmail, workspaceId)
}