Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
akhismat committed Dec 24, 2024
1 parent 9bf1b1a commit f8a6c4c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 34 deletions.
58 changes: 28 additions & 30 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/importer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@hcengineering/chunter": "^0.6.20",
"@hcengineering/collaboration": "^0.6.0",
"@hcengineering/contact": "^0.6.24",
"@hcengineering/controlled-documents": "^0.1.0"
"@hcengineering/controlled-documents": "^0.1.0",
"@hcengineering/core": "^0.6.32",
"@hcengineering/document": "^0.6.0",
"@hcengineering/model-attachment": "^0.6.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/importer/src/huly/unified.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ export class UnifiedFormatImporter {
this.logger.log('Importing attachments...')

const attachments: ImportAttachment[] = await Promise.all(
Array.from(this.fileMetadataByPath.values())
Array.from(this.fileMetaByPath.values())
.filter((attachMeta) => attachMeta.parentId !== undefined)
.map(async (attachMeta: AttachmentMetadata) => await this.processAttachment(attachMeta))
)
Expand Down Expand Up @@ -731,7 +731,7 @@ export class UnifiedFormatImporter {
if (comment.attachments !== undefined) {
for (const attachmentPath of comment.attachments) {
const fullPath = path.resolve(currentPath, attachmentPath)
const attachmentMeta = this.fileMetadataByPath.get(fullPath)
const attachmentMeta = this.fileMetaByPath.get(fullPath)
if (attachmentMeta !== undefined) {
const importAttachment = await this.processAttachment(attachmentMeta)
attachments.push(importAttachment)
Expand Down Expand Up @@ -971,7 +971,7 @@ export class UnifiedFormatImporter {
await processDir(fullPath)
} else if (entry.isFile()) {
const attachmentId = generateId<Attachment>()
this.fileMetadataByPath.set(fullPath, { id: attachmentId, name: entry.name, path: fullPath })
this.fileMetaByPath.set(fullPath, { id: attachmentId, name: entry.name, path: fullPath })
}
}
}
Expand Down

0 comments on commit f8a6c4c

Please sign in to comment.