🔧 Auto-watcher-importer now batches jobs in the queue

This commit is contained in:
2022-01-26 01:59:10 -08:00
parent 019493a6f3
commit 16838a5ea5
2 changed files with 6 additions and 6 deletions

View File

@@ -147,10 +147,12 @@ export default class ApiService extends Service {
basePathToWalk: path,
});
console.log(walkedFolder);
await this.broker.call(
"import.processAndImportToDB",
{ walkedFolder }
);
await this.broker.call("libraryqueue.enqueue", {
fileObject: {
filePath: walkedFolder[0].filePath,
size: walkedFolder[0].fileSize,
},
});
} else {
setTimeout(
checkFileCopyComplete,

View File

@@ -55,8 +55,6 @@ export const extractCoverFromFile2 = async (
fileObject: any
): Promise<any> => {
try {
console.log("ASDASD!@#!#!@#!@#");
console.log(fileObject);
const { filePath, fileSize} = fileObject;
const calibre = new Calibre();