Testing fixes 0.53.4 #7600
3 changed files with 6 additions and 4 deletions
|
@ -14,7 +14,7 @@ const select = (state) => ({
|
|||
const perform = (dispatch) => ({
|
||||
getDaemonStatus: () => dispatch(doGetDaemonStatus()),
|
||||
setDaemonSetting: (key, value) => dispatch(doSetDaemonSetting(key, value)),
|
||||
cleanBlobs: () => dispatch(doCleanBlobs()),
|
||||
cleanBlobs: () => dispatch(doCleanBlobs(false)),
|
||||
});
|
||||
|
||||
export default connect(select, perform)(SettingWalletServer);
|
||||
|
|
|
@ -14,7 +14,7 @@ const select = (state) => ({
|
|||
const perform = (dispatch) => ({
|
||||
getDaemonStatus: () => dispatch(doGetDaemonStatus()),
|
||||
setDaemonSetting: (key, value) => dispatch(doSetDaemonSetting(key, value)),
|
||||
cleanBlobs: () => dispatch(doCleanBlobs()),
|
||||
cleanBlobs: () => dispatch(doCleanBlobs(false)),
|
||||
});
|
||||
|
||||
export default connect(select, perform)(SettingViewHosting);
|
||||
|
|
|
@ -154,10 +154,12 @@ export function doSetDaemonSetting(key, value, doNotDispatch = false) {
|
|||
};
|
||||
}
|
||||
|
||||
export function doCleanBlobs() {
|
||||
export function doCleanBlobs(fetchAfter = true) {
|
||||
return (dispatch) => {
|
||||
return Lbry.blob_clean().then(() => {
|
||||
if (fetchAfter) {
|
||||
dispatch(doFetchDaemonSettings());
|
||||
}
|
||||
return 'done';
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue