Undoing changes caused by linter run amok

This commit is contained in:
Cassie Esposito 2022-05-24 17:30:16 -07:00
parent 6d947bbc29
commit b22173a631

View File

@ -330,10 +330,12 @@ async function getLibraryItemFileData(libraryMediaType, folder, libraryItemPath,
var fileItems = []
if (isSingleMediaItem) { // Single media item in root of folder
fileItems = [{
fileItems = [
{
fullpath: libraryItemPath,
path: libraryItemDir // actually the relPath (only filename here)
}]
}
]
libraryItemData = {
path: libraryItemPath, // full path
relPath: libraryItemDir, // only filename
@ -366,10 +368,10 @@ async function getLibraryItemFileData(libraryMediaType, folder, libraryItemPath,
for (let i = 0; i < fileItems.length; i++) {
var fileItem = fileItems[i]
var newLibraryFile = new LibraryFile()
// fileItem.path is the relative path
// fileItem.path is the relative path
await newLibraryFile.setDataFromPath(fileItem.fullpath, fileItem.path)
libraryItem.libraryFiles.push(newLibraryFile)
}
return libraryItem
}
module.exports.getLibraryItemFileData = getLibraryItemFileData
module.exports.getLibraryItemFileData = getLibraryItemFileData