🔌 Socket + RabbitMQ setup for download-client touched folders/files

This commit is contained in:
2021-09-18 09:25:59 -07:00
parent 476a55614e
commit be43c163dc
13 changed files with 265 additions and 86 deletions

View File

@@ -12,7 +12,7 @@ import {
IMS_CV_METADATA_IMPORT_CALL_IN_PROGRESS,
} from "../constants/action-types";
const initialState = {
dataTransferred: false,
IMSCallInProgress: false,
comicBookMetadata: [],
isSocketConnected: false,
isComicVineMetadataImportInProgress: false,
@@ -26,7 +26,7 @@ function fileOpsReducer(state = initialState, action) {
return {
...state,
comicBookMetadata: [...state.comicBookMetadata, action.data],
dataTransferred: true,
IMSCallInProgress: false,
};
case RMQ_SOCKET_CONNECTED:
@@ -34,6 +34,7 @@ function fileOpsReducer(state = initialState, action) {
...state,
isSocketConnected: action.isSocketConnected,
socketId: action.socketId,
IMSCallInProgress: true,
};
case IMS_RAW_IMPORT_SUCCESSFUL:
return {