🔧 Fix for a missing key in IFolderData

This commit is contained in:
2022-01-26 10:10:25 -08:00
parent 16838a5ea5
commit c3ef3055fd
2 changed files with 3 additions and 4 deletions

View File

@@ -128,7 +128,7 @@ export default class ApiService extends Service {
},
}
);
const fileCopyDelaySeconds = 10;
const fileCopyDelaySeconds = 30;
const checkFileCopyComplete = (path, previousPath) => {
fs.stat(path, async (err, stat) => {
if (err) {
@@ -146,11 +146,10 @@ export default class ApiService extends Service {
await broker.call("import.walkFolders", {
basePathToWalk: path,
});
console.log(walkedFolder);
await this.broker.call("libraryqueue.enqueue", {
fileObject: {
filePath: walkedFolder[0].filePath,
size: walkedFolder[0].fileSize,
fileSize: walkedFolder[0].fileSize,
},
});
} else {

View File

@@ -55,7 +55,7 @@ export const extractCoverFromFile2 = async (
fileObject: any
): Promise<any> => {
try {
const { filePath, fileSize} = fileObject;
const { filePath, fileSize } = fileObject;
const calibre = new Calibre();
console.info(`Initiating extraction process for path ${filePath}`);