mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 03:40:48 +00:00
UBERF-5289: fix getting parent doc for some cases for indexing (#4549)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
parent
44a2af4888
commit
d98fb41ac3
@ -215,7 +215,7 @@ export class FullTextPushStage implements FullTextPipelineStage {
|
||||
{},
|
||||
async (ctx) =>
|
||||
await this.dbStorage.findAll(ctx, core.class.DocIndexState, {
|
||||
_id: doc.space as any as Ref<DocIndexState>
|
||||
_id: (doc.attributes[docKey('space', { _class: doc.objectClass })] ?? doc.space) as Ref<DocIndexState>
|
||||
})
|
||||
)
|
||||
|
||||
|
@ -107,4 +107,4 @@ export const fieldStateId = 'fld-v11'
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export const fullTextPushStageId = 'fts-v9bc'
|
||||
export const fullTextPushStageId = 'fts-v9_2'
|
||||
|
Loading…
Reference in New Issue
Block a user