Skip to content

Commit 287f2f2

Browse files
committed
minor cleanup
Signed-off-by: Anna Khismatullina <[email protected]>
1 parent 7be55ef commit 287f2f2

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

dev/import-tool/docs/huly/example-workspace/Custom.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class: card:class:MasterTag
2-
title: Master Tag 1
2+
title: Master Tag 3
33
properties:
44
- label: aaa # embedded:embedded:aaa
55
type: TypeString # human readable format + core:class^

packages/importer/src/huly/huly.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ export class HulyFormatImporter {
353353

354354
private readonly personIdByEmail = new Map<string, PersonId>()
355355

356-
private readonly unifiedDocImporter: UnifiedDocProcessor
356+
private readonly unifiedDocImporter = new UnifiedDocProcessor()
357357

358358
constructor (
359359
private readonly client: TxOperations,
@@ -362,7 +362,6 @@ export class HulyFormatImporter {
362362
private readonly importerSocialId?: PersonId,
363363
private readonly importerPerson?: Ref<Person>
364364
) {
365-
this.unifiedDocImporter = new UnifiedDocProcessor(this.client, this.logger)
366365
}
367366

368367
private async initCaches (): Promise<void> {

packages/importer/src/huly/unified.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,16 @@ import core, {
66
type Doc,
77
generateId,
88
type Ref,
9-
type TxOperations
109
} from '@hcengineering/core'
1110
import * as fs from 'fs'
1211
import * as path from 'path'
1312
import * as yaml from 'js-yaml'
14-
import { Logger } from '../importer/logger'
1513
import { IntlString } from '../../../platform/types'
1614
import { readMarkdownContent, readYamlHeader } from './parsing'
1715

1816
export type UnifiedDocProcessResult = Map<string, Array<UnifiedDoc<Doc>>>
1917

2018
export class UnifiedDocProcessor {
21-
constructor (
22-
private readonly client: TxOperations,
23-
private readonly logger: Logger
24-
) {}
25-
2619
async importFromDirectory (directoryPath: string): Promise<UnifiedDocProcessResult> {
2720
const unifiedDocs: UnifiedDocProcessResult = new Map()
2821
await this.processDirectory(directoryPath, unifiedDocs)

0 commit comments

Comments
 (0)