Skip to content

Commit

Permalink
Update:Downloading library item shows log on the server with username #…
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Jul 15, 2023
1 parent 72e3069 commit ddc54c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/controllers/LibraryItemController.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ class LibraryItemController {
}

const libraryItemPath = req.libraryItem.path
const filename = `${req.libraryItem.media.metadata.title}.zip`
const itemTitle = req.libraryItem.media.metadata.title
Logger.info(`[LibraryItemController] User "${req.user.username}" requested download for item "${itemTitle}" at "${libraryItemPath}"`)
const filename = `${itemTitle}.zip`
zipHelpers.zipDirectoryPipe(libraryItemPath, filename, res)
}

Expand Down

0 comments on commit ddc54c8

Please sign in to comment.