mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 09:56:36 +01:00
server-ts: Port routes/routes
This commit is contained in:
@@ -124,7 +124,7 @@ function attachmentContentProvider(req: Request) {
|
||||
return streamContent(attachment.getContent(), attachment.getFileName(), attachment.mime);
|
||||
}
|
||||
|
||||
function streamContent(content: string | Buffer, fileName: string, mimeType: string) {
|
||||
async function streamContent(content: string | Buffer, fileName: string, mimeType: string) {
|
||||
if (typeof content === "string") {
|
||||
content = Buffer.from(content, 'utf8');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user