Rework documents (#2347)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2022-11-02 14:50:14 +06:00
committed by GitHub
parent d52f7ab18b
commit f69439eaef
332 changed files with 5981 additions and 4326 deletions
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -170,7 +170,7 @@ export async function importXml (
{
name: f,
file: attachId,
type: type,
type,
size: stats.size,
lastModified: stats.mtime.getTime()
},
+4 -4
View File
@@ -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
})