Skip to content

Commit 9217aff

Browse files
authored
Add missing server-drive-resources (#5934)
Signed-off-by: Andrey Sobolev <[email protected]>
1 parent 524c5b4 commit 9217aff

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

pods/server/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@
153153
"@hcengineering/attachment": "^0.6.14",
154154
"@hcengineering/lead": "^0.6.0",
155155
"@hcengineering/drive": "^0.6.0",
156+
"@hcengineering/server-drive": "^0.6.0",
157+
"@hcengineering/server-drive-resources": "^0.6.0",
156158
"@hcengineering/gmail": "^0.6.22",
157159
"@hcengineering/inventory": "^0.6.11",
158160
"@hcengineering/templates": "^0.6.11",

pods/server/src/server.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ import {
7575
type ServerStorage
7676
} from '@hcengineering/server-core'
7777
import { serverDocumentId } from '@hcengineering/server-document'
78+
import { serverDriveId } from '@hcengineering/server-drive'
7879
import { serverGmailId } from '@hcengineering/server-gmail'
7980
import { serverGuestId } from '@hcengineering/server-guest'
8081
import { serverHrId } from '@hcengineering/server-hr'
@@ -195,9 +196,9 @@ addStringsLoader(trackerId, async (lang: string) => trackerEn)
195196
addStringsLoader(boardId, async (lang: string) => boardEn)
196197
addStringsLoader(preferenceId, async (lang: string) => preferenceEn)
197198
addStringsLoader(hrId, async (lang: string) => hrEn)
199+
addStringsLoader(documentId, async (lang: string) => documentEn)
198200
addStringsLoader(bitrixId, async (lang: string) => bitrixEn)
199201
addStringsLoader(requestId, async (lang: string) => requestEn)
200-
addStringsLoader(documentId, async (lang: string) => documentEn)
201202
addStringsLoader(loveId, async (lang: string) => loveEn)
202203
addStringsLoader(driveId, async (lang: string) => driveEn)
203204
addStringsLoader(documentsId, async (lang: string) => documentsEn)
@@ -226,6 +227,7 @@ export function start (
226227
accountsUrl: string
227228
}
228229
): () => Promise<void> {
230+
addLocation(serverActivityId, () => import('@hcengineering/server-activity-resources'))
229231
addLocation(serverAttachmentId, () => import('@hcengineering/server-attachment-resources'))
230232
addLocation(serverCollaborationId, () => import('@hcengineering/server-collaboration-resources'))
231233
addLocation(serverContactId, () => import('@hcengineering/server-contact-resources'))
@@ -244,12 +246,12 @@ export function start (
244246
addLocation(serverRequestId, () => import('@hcengineering/server-request-resources'))
245247
addLocation(serverViewId, () => import('@hcengineering/server-view-resources'))
246248
addLocation(serverHrId, () => import('@hcengineering/server-hr-resources'))
247-
addLocation(serverActivityId, () => import('@hcengineering/server-activity-resources'))
248249
addLocation(serverLoveId, () => import('@hcengineering/server-love-resources'))
249250
addLocation(serverGuestId, () => import('@hcengineering/server-guest-resources'))
250251
addLocation(openAIId, () => Promise.resolve({ default: openAIPluginImpl }))
251252
addLocation(serverDocumentId, () => import('@hcengineering/server-document-resources'))
252253
addLocation(serverTimeId, () => import('@hcengineering/server-time-resources'))
254+
addLocation(serverDriveId, () => import('@hcengineering/server-drive-resources'))
253255
addLocation(serverDocumentsId, () => import('@hcengineering/server-controlled-documents-resources'))
254256
addLocation(serverTrainingId, () => import('@hcengineering/server-training-resources'))
255257

@@ -328,14 +330,13 @@ export function start (
328330

329331
return stages
330332
}
331-
332333
const pipelineFactory: PipelineFactory = (ctx, workspace, upgrade, broadcast, branding) => {
333334
const wsMetrics = metrics.newChild('🧲 session', {})
334335
const conf: DbConfiguration = {
335336
domains: {
336337
[DOMAIN_TX]: 'MongoTx',
337338
[DOMAIN_TRANSIENT]: 'InMemory',
338-
[DOMAIN_BLOB]: 'Blob',
339+
[DOMAIN_BLOB]: 'StorageData',
339340
[DOMAIN_FULLTEXT_BLOB]: 'FullTextBlob',
340341
[DOMAIN_MODEL]: 'Null'
341342
},
@@ -358,7 +359,7 @@ export function start (
358359
factory: createInMemoryAdapter,
359360
url: ''
360361
},
361-
Blob: {
362+
StorageData: {
362363
factory: createStorageDataAdapter,
363364
url: dbUrl
364365
},
@@ -381,6 +382,7 @@ export function start (
381382
contentAdapter
382383
)
383384
},
385+
serviceAdapters: {},
384386
contentAdapters: {
385387
Rekoni: {
386388
factory: createRekoniAdapter,
@@ -393,7 +395,6 @@ export function start (
393395
url: ''
394396
}
395397
},
396-
serviceAdapters: {},
397398
defaultContentAdapter: 'Rekoni',
398399
storageFactory: externalStorage,
399400
workspace

0 commit comments

Comments
 (0)