chore: fix ContentType usage (#2353)

* chore: fix ContentType usage

* chore: fix specs
This commit is contained in:
Karol Sójko
2023-07-12 13:53:29 +02:00
committed by GitHub
parent d057cdff84
commit 325737bfbd
247 changed files with 1092 additions and 1060 deletions

View File

@@ -5,7 +5,6 @@ import {
isClientDisplayableError,
isErrorResponse,
} from '@standardnotes/responses'
import { ContentType } from '@standardnotes/common'
import {
FileItem,
FileProtocolV1Constants,
@@ -54,6 +53,7 @@ import {
SharedVaultServerInterface,
HttpServiceInterface,
} from '@standardnotes/api'
import { ContentType } from '@standardnotes/domain-core'
const OneHundredMb = 100 * 1_000_000
@@ -268,7 +268,7 @@ export class FileService extends AbstractService implements FilesClientInterface
}
const file = await this.mutator.createItem<FileItem>(
ContentType.File,
ContentType.TYPES.File,
FillItemContentSpecialized(fileContent),
true,
operation.vault,