TSK-1414: Fix exceptions in Kanban (#3119) (#3123)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2023-05-03 20:09:48 +06:00
committed by GitHub
parent cf1e8b284f
commit 149d8cda46
43 changed files with 1842 additions and 752 deletions
+8 -8
View File
@@ -24,7 +24,7 @@ import {
DummyFullTextAdapter,
FullTextAdapter
} from '@hcengineering/server-core'
import { ClientSession, start as startJsonRpc } from '@hcengineering/server-ws'
import { ClientSession, startHttpServer, start as startJsonRpc } from '@hcengineering/server-ws'
async function createNullFullTextAdapter (): Promise<FullTextAdapter> {
return new DummyFullTextAdapter()
@@ -43,9 +43,8 @@ async function createNullContentTextAdapter (): Promise<ContentTextAdapter> {
*/
export async function start (port: number, host?: string): Promise<void> {
const ctx = new MeasureMetricsContext('server', {})
startJsonRpc(
ctx,
(ctx) => {
startJsonRpc(ctx, {
pipelineFactory: (ctx) => {
const conf: DbConfiguration = {
domains: {
[DOMAIN_TX]: 'InMemoryTx'
@@ -75,9 +74,10 @@ export async function start (port: number, host?: string): Promise<void> {
}
return createPipeline(ctx, conf, [], false, () => {})
},
(token, pipeline, broadcast) => new ClientSession(broadcast, token, pipeline),
sessionFactory: (token, pipeline, broadcast) => new ClientSession(broadcast, token, pipeline),
port,
'',
host
)
productId: '',
serverFactory: startHttpServer,
chunking: -1
})
}