mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-20 13:27:56 +02:00
Rebalancing & directory creation bug fix
Rebalancing & directory creation bug fix
This commit is contained in:
parent
4c94197bc2
commit
a42e76edce
4 changed files with 6 additions and 4 deletions
|
|
@ -15,5 +15,5 @@
|
|||
<link rel="stylesheet" href="styles.da5d02955b06fbd16881.css"></head>
|
||||
<body>
|
||||
<rtl-app></rtl-app>
|
||||
<script src="runtime.9c469fe6b4e77e4e8274.js" defer></script><script src="polyfills-es5.2ae7ace69949ec0a3f00.js" nomodule defer></script><script src="polyfills.3302e98effc5e50a54c2.js" defer></script><script src="main.3cc0daec879a4055c999.js" defer></script></body>
|
||||
<script src="runtime.9c469fe6b4e77e4e8274.js" defer></script><script src="polyfills-es5.2ae7ace69949ec0a3f00.js" nomodule defer></script><script src="polyfills.3302e98effc5e50a54c2.js" defer></script><script src="main.6f088743ff52235d1682.js" defer></script></body>
|
||||
</html>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -234,7 +234,9 @@ connect.createDirectory = (dirname) => {
|
|||
dirname.split(path.sep).reduce((parentDir, childDir) => {
|
||||
const curDir = path.resolve(parentDir, childDir);
|
||||
try {
|
||||
fs.mkdirSync(curDir);
|
||||
if (!fs.existsSync(curDir)) {
|
||||
fs.mkdirSync(curDir);
|
||||
}
|
||||
} catch (err) {
|
||||
if (err.code !== 'EEXIST') {
|
||||
if (err.code === 'ENOENT') {
|
||||
|
|
|
|||
|
|
@ -166,7 +166,6 @@ export class LNDEffects implements OnDestroy {
|
|||
map((postRes: any) => {
|
||||
this.logger.info(postRes);
|
||||
this.store.dispatch(new RTLActions.FetchInvoices({ num_max_invoices: action.payload.pageSize, reversed: true }));
|
||||
this.store.dispatch(new RTLActions.CloseSpinner());
|
||||
if (action.payload.openModal) {
|
||||
postRes.memo = action.payload.memo;
|
||||
postRes.value = action.payload.invoiceValue;
|
||||
|
|
@ -175,6 +174,7 @@ export class LNDEffects implements OnDestroy {
|
|||
postRes.private = action.payload.private;
|
||||
postRes.creation_date = Math.round(new Date().getTime() / 1000).toString();
|
||||
postRes.creation_date_str = this.commonService.convertTimestampToDate(+postRes.creation_date);
|
||||
this.store.dispatch(new RTLActions.CloseSpinner());
|
||||
return {
|
||||
type: RTLActions.OPEN_ALERT,
|
||||
payload: { data: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue