Fix storage upload to return public URL path

This commit is contained in:
fspecii
2026-02-04 21:44:13 +02:00
parent d318a1b856
commit 823fbe0cd3
+1 -1
View File
@@ -18,7 +18,7 @@ export class LocalStorageProvider implements StorageProvider {
const filepath = path.join(this.audioDir, key);
await mkdir(path.dirname(filepath), { recursive: true });
await writeFile(filepath, data);
return key;
return `/audio/${key}`;
}
async getUrl(key: string, _expiresIn?: number): Promise<string> {