mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 11:50:56 +00:00
uberf-8509: fix docx to html conversion (#6970)
This commit is contained in:
parent
23027deb17
commit
a0b9a9830b
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
@ -381,9 +381,7 @@
|
||||
"PORT": "4005",
|
||||
"SECRET": "secret",
|
||||
"MONGO_URL": "mongodb://localhost:27017",
|
||||
"MINIO_ENDPOINT": "localhost",
|
||||
"MINIO_ACCESS_KEY": "minioadmin",
|
||||
"MINIO_SECRET_KEY": "minioadmin"
|
||||
"STORAGE_CONFIG": "minio|localhost?accessKey=minioadmin&secretKey=minioadmin"
|
||||
},
|
||||
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
||||
"runtimeVersion": "20",
|
||||
|
@ -193,7 +193,9 @@ export function createServer (dbUrl: string, storageConfig: StorageConfiguration
|
||||
throw new ApiError(400, 'Failed to convert')
|
||||
}
|
||||
|
||||
await storageAdapter.put(measureCtx, token.workspace, convertId, htmlRes, 'text/html', htmlRes.length)
|
||||
const htmlBuf = Buffer.from(htmlRes)
|
||||
|
||||
await storageAdapter.put(measureCtx, token.workspace, convertId, htmlBuf, 'text/html', htmlBuf.length)
|
||||
}
|
||||
|
||||
res.contentType('application/json')
|
||||
|
Loading…
Reference in New Issue
Block a user