diff --git a/packages/engine-chronocat-api/src/common/file.ts b/packages/engine-chronocat-api/src/common/file.ts index b5ea339..073abca 100644 --- a/packages/engine-chronocat-api/src/common/file.ts +++ b/packages/engine-chronocat-api/src/common/file.ts @@ -157,7 +157,7 @@ export const commonFile = async ( return { srcPath: filePath, - destPath: richMediaPath, + dstPath: richMediaPath, fileSize, fileName, fileMime, diff --git a/packages/engine-chronocat-api/src/common/save.ts b/packages/engine-chronocat-api/src/common/save.ts index a10e84c..a6921bd 100644 --- a/packages/engine-chronocat-api/src/common/save.ts +++ b/packages/engine-chronocat-api/src/common/save.ts @@ -15,7 +15,7 @@ export const commonSave = async ( await parsedFile.commit() return { - filePath: parsedFile.destPath, + filePath: parsedFile.dstPath, fileSize: parsedFile.fileSize, fileName: parsedFile.fileName, fileMime: parsedFile.fileMime, diff --git a/packages/engine-chronocat-api/src/common/types.ts b/packages/engine-chronocat-api/src/common/types.ts index 1de013e..65431d7 100644 --- a/packages/engine-chronocat-api/src/common/types.ts +++ b/packages/engine-chronocat-api/src/common/types.ts @@ -21,7 +21,7 @@ export interface CommonSaveResult extends CommonFileInfo { export interface CommonFileResult extends CommonFileInfo { srcPath: string - destPath: string + dstPath: string commit: () => Promise cancel: () => void }