🔧 Support for refactored import process WIP

This commit is contained in:
2021-12-01 14:06:41 -08:00
parent 2cc9aee22e
commit e197143498
11 changed files with 67 additions and 25 deletions

View File

@@ -59,7 +59,7 @@ export const fetchComicBookMetadata = (options) => async (dispatch) => {
page: 1,
},
};
const walked = await walkFolder("./comics");
// dispatch(
// success({
// // uid: 'once-please', // you can specify your own uid if required
@@ -70,13 +70,11 @@ export const fetchComicBookMetadata = (options) => async (dispatch) => {
// autoDismiss: 0,
// }),
// );
walked.forEach((walkedFolders) =>
dispatch({
type: LS_IMPORT,
meta: { remote: true },
data: { extractionOptions, walkedFolders },
}),
);
dispatch({
type: LS_IMPORT,
meta: { remote: true },
data: { extractionOptions },
});
};
export const getComicBooks = (options) => async (dispatch) => {

View File

@@ -46,3 +46,7 @@ export const deleteSettings = () => async (dispatch) => {
});
}
};
export const flushDb = () => async (dispatch) => {
}