mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 04:25:03 +02:00
UBER-853 Add ydoc indexation (#3817)
Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
@@ -101,7 +101,7 @@ async function createNullFullTextAdapter (): Promise<FullTextAdapter> {
|
||||
}
|
||||
async function createNullContentTextAdapter (): Promise<ContentTextAdapter> {
|
||||
return {
|
||||
async fetch (name: string, type: string, doc) {
|
||||
async content (name: string, type: string, doc) {
|
||||
return ''
|
||||
},
|
||||
metrics () {
|
||||
@@ -132,10 +132,14 @@ export async function connect (handler: (tx: Tx) => void): Promise<ClientConnect
|
||||
url: '',
|
||||
stages: () => []
|
||||
},
|
||||
contentAdapter: {
|
||||
url: '',
|
||||
factory: createNullContentTextAdapter
|
||||
contentAdapters: {
|
||||
default: {
|
||||
factory: createNullContentTextAdapter,
|
||||
contentType: '',
|
||||
url: ''
|
||||
}
|
||||
},
|
||||
defaultContentAdapter: 'default',
|
||||
workspace: getWorkspaceId('')
|
||||
}
|
||||
const serverStorage = await createServerStorage(conf, {
|
||||
|
||||
Reference in New Issue
Block a user