mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-21 17:17:54 +02:00
Rework documents (#2347)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -168,7 +168,7 @@ export class ElasticTool {
|
||||
const id: Ref<Doc> = (generateId() + '/attachments/') as Ref<Doc>
|
||||
|
||||
const indexedDoc: IndexedDoc = {
|
||||
id: id,
|
||||
id,
|
||||
_class: doc._class,
|
||||
space: doc.space,
|
||||
modifiedOn: doc.modifiedOn,
|
||||
|
||||
@@ -170,7 +170,7 @@ export async function importXml (
|
||||
{
|
||||
name: f,
|
||||
file: attachId,
|
||||
type: type,
|
||||
type,
|
||||
size: stats.size,
|
||||
lastModified: stats.mtime.getTime()
|
||||
},
|
||||
|
||||
@@ -69,7 +69,7 @@ export async function addChannel (
|
||||
contact.class.Person,
|
||||
'channels',
|
||||
{
|
||||
value: value,
|
||||
value,
|
||||
provider: type
|
||||
}
|
||||
)
|
||||
@@ -77,7 +77,7 @@ export async function addChannel (
|
||||
if (isUndef(provider.value)) {
|
||||
provider.value = value
|
||||
await client.update(provider, {
|
||||
value: value,
|
||||
value,
|
||||
provider: type
|
||||
})
|
||||
}
|
||||
@@ -173,12 +173,12 @@ export async function updateSkills (client: TxOperations, c: Candidate, document
|
||||
color,
|
||||
targetClass: recruit.mixin.Candidate,
|
||||
description: '',
|
||||
category: category
|
||||
category
|
||||
})
|
||||
}
|
||||
namedSkills.add(title)
|
||||
await client.addCollection(tags.class.TagReference, c.space, c._id, recruit.mixin.Candidate, 'skills', {
|
||||
title: title,
|
||||
title,
|
||||
color,
|
||||
tag
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user