WIP. A little custom music server
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: move file exist check to variable

+3 -1
+3 -1
backend/src/api.ts
··· 165 165 166 166 const fileHandle = Bun.file(file.path); 167 167 168 + const fileExists = yield* Effect.tryPromise(() => fileHandle.exists()); 169 + 168 170 // Check if file exists 169 - if (!(yield* Effect.tryPromise(() => fileHandle.exists()))) { 171 + if (!fileExists) { 170 172 return yield* Effect.fail( 171 173 new FileNotFoundError({ 172 174 message: `File not found on disk: ${file.path}`,