From 97f4e99c492aa3bd4df6a0d8aa4d1828dd1c1313 Mon Sep 17 00:00:00 2001 From: Il Harper Date: Sat, 7 Sep 2024 13:11:40 +0800 Subject: [PATCH] refactor(api): `destPath` => `dstPath` --- packages/engine-chronocat-api/src/common/file.ts | 2 +- packages/engine-chronocat-api/src/common/save.ts | 2 +- packages/engine-chronocat-api/src/common/types.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 }