👇🏼 Inferring issue metadata upon import

This commit is contained in:
2022-02-06 23:14:18 -08:00
parent f0d6143af2
commit bfb1f7fa28
9 changed files with 6712 additions and 479 deletions

View File

@@ -100,7 +100,7 @@ export default class ApiService extends Service {
// 1. Send task to queue
console.log(`Recieved ${action.type} event.`)
await this.broker.call(
"import.newImport",
"library.newImport",
action.data,
{}
);
@@ -142,10 +142,10 @@ export default class ApiService extends Service {
"File detected, starting import..."
);
const walkedFolder: IFolderData =
await broker.call("import.walkFolders", {
await broker.call("library.walkFolders", {
basePathToWalk: path,
});
await this.broker.call("libraryqueue.enqueue", {
await this.broker.call("library.processImport", {
fileObject: {
filePath: walkedFolder[0].filePath,
fileSize: walkedFolder[0].fileSize,