🔧 Tweaking the file copy end detector method

This commit is contained in:
2022-04-14 22:52:38 -07:00
parent 2376aeb0b9
commit 4b9ba28739
2 changed files with 21 additions and 49 deletions

View File

@@ -75,13 +75,10 @@ export default class QueueService extends Service {
const result = await extractFromArchive(
job.data.fileObject.filePath
);
Object.assign(result, {
fileSize: job.data.fileObject.fileSize,
});
const {
name,
filePath,
fileSize,
extension,
cover,
containedIn,
@@ -113,7 +110,7 @@ export default class QueueService extends Service {
rawFileDetails: {
name,
filePath,
fileSize,
fileSize: job.data.fileObject.fileSize,
extension,
containedIn,
cover,
@@ -218,17 +215,6 @@ export default class QueueService extends Service {
}
);
await this.getQueue("process.import").on(
"drained",
async (data) => {
client.emit("action", {
type: "LS_QUEUE_DRAINED",
result: data,
});
console.log("Drained", data);
return data;
}
);
});
},
});