diff --git a/scripts/build_npm.ts b/scripts/build_npm.ts index 33784bf1..adef3ee9 100644 --- a/scripts/build_npm.ts +++ b/scripts/build_npm.ts @@ -1,4 +1,4 @@ -import path from '@std/path'; +import * as path from '@std/path'; import { copy, exists } from '@std/fs'; import { build, emptyDir } from '@deno/dnt'; diff --git a/src/containers/server/routes/FolderController.ts b/src/containers/server/routes/FolderController.ts index 8fa5a842..5e60629d 100644 --- a/src/containers/server/routes/FolderController.ts +++ b/src/containers/server/routes/FolderController.ts @@ -275,7 +275,7 @@ export default class FolderController extends Controller { : await markdownTreeProcessor.findByPath(contentFilePath); if (treeItem) { - const previewUrl = convertToPreviewUrl(userConfigService.config.preview_rewrite_rule, driveId)({ path: treeItem.path || '' }); + const { previewUrl } = convertToPreviewUrl(userConfigService.config.preview_rewrite_rule, driveId)({ path: treeItem.path || '' }); ctx.res.setHeader('wgd-google-parent-id', treeItem.parentId || ''); ctx.res.setHeader('wgd-google-id', treeItem.id || '');