mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-24 17:30:03 +00:00
Use different account for imported documents (#784)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
fc021b8534
commit
987a8d670a
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
import attachment, { Attachment } from '@anticrm/attachment'
|
import attachment, { Attachment } from '@anticrm/attachment'
|
||||||
import chunter, { Comment } from '@anticrm/chunter'
|
import chunter, { Comment } from '@anticrm/chunter'
|
||||||
import contact, { ChannelProvider, Person } from '@anticrm/contact'
|
import contact, { ChannelProvider, EmployeeAccount, Person } from '@anticrm/contact'
|
||||||
import core, { AttachedData, AttachedDoc, Class, Data, Doc, DocumentUpdate, Ref, SortingOrder, Space, TxOperations, TxResult, MixinData } from '@anticrm/core'
|
import core, { AttachedData, AttachedDoc, Class, Data, Doc, DocumentUpdate, Ref, SortingOrder, Space, TxOperations, TxResult, MixinData } from '@anticrm/core'
|
||||||
import recruit from '@anticrm/model-recruit'
|
import recruit from '@anticrm/model-recruit'
|
||||||
import { Applicant, Candidate, Vacancy } from '@anticrm/recruit'
|
import { Applicant, Candidate, Vacancy } from '@anticrm/recruit'
|
||||||
@ -100,7 +100,7 @@ export async function importXml (
|
|||||||
console.log('Found candidates:', candidates.length)
|
console.log('Found candidates:', candidates.length)
|
||||||
|
|
||||||
// const attributes = new Set<string>()
|
// const attributes = new Set<string>()
|
||||||
const client = new TxOperations(connection, core.account.System)
|
const client = new TxOperations(connection, 'core:account:xml-importer' as Ref<EmployeeAccount>)
|
||||||
|
|
||||||
const statuses = candidates.map((c: any) => get(c, _.status)).filter((c: any) => c !== undefined)
|
const statuses = candidates.map((c: any) => get(c, _.status)).filter((c: any) => c !== undefined)
|
||||||
.filter(onlyUniq)
|
.filter(onlyUniq)
|
||||||
|
Loading…
Reference in New Issue
Block a user