From 66bad2002c3b7b7d767050ceba3417ee7d5656da Mon Sep 17 00:00:00 2001 From: an-lee Date: Tue, 20 Feb 2024 12:38:10 +0800 Subject: [PATCH] fix write cache file --- enjoy/src/main/db/handlers/cache-objects-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enjoy/src/main/db/handlers/cache-objects-handler.ts b/enjoy/src/main/db/handlers/cache-objects-handler.ts index cdb2fc338..411ebd5c6 100644 --- a/enjoy/src/main/db/handlers/cache-objects-handler.ts +++ b/enjoy/src/main/db/handlers/cache-objects-handler.ts @@ -72,7 +72,7 @@ class CacheObjectsHandler { const output = path.join(settings.cachePath(), filename); fs.writeFileSync(output, Buffer.from(data)); - return output.replace(settings.libraryPath(), "enjoy://library"); + return `enjoy://library/cache/${filename}`; } register() {