nexushub-commands 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -74,6 +74,17 @@ let DepositCommand = class DepositCommand extends evogram_1.Command {
|
|
|
74
74
|
break;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
+
else {
|
|
78
|
+
order = yield config.API.post(`orders`, {
|
|
79
|
+
mirrorId: context.mammoth.mirror.mirror.id,
|
|
80
|
+
mammothId: context.user.id,
|
|
81
|
+
method,
|
|
82
|
+
amount: Number(deposit),
|
|
83
|
+
currency: config.currency,
|
|
84
|
+
})
|
|
85
|
+
.then((x) => x.data)
|
|
86
|
+
.catch(() => null);
|
|
87
|
+
}
|
|
77
88
|
//@ts-ignore
|
|
78
89
|
if (interval)
|
|
79
90
|
clearInterval(interval);
|
package/package.json
CHANGED
|
@@ -213,6 +213,16 @@ export class DepositCommand extends Command {
|
|
|
213
213
|
|
|
214
214
|
if (order) break;
|
|
215
215
|
}
|
|
216
|
+
} else {
|
|
217
|
+
order = await config.API.post(`orders`, {
|
|
218
|
+
mirrorId: context.mammoth.mirror.mirror.id,
|
|
219
|
+
mammothId: context.user.id,
|
|
220
|
+
method,
|
|
221
|
+
amount: Number(deposit),
|
|
222
|
+
currency: config.currency,
|
|
223
|
+
})
|
|
224
|
+
.then((x) => x.data)
|
|
225
|
+
.catch(() => null);
|
|
216
226
|
}
|
|
217
227
|
|
|
218
228
|
//@ts-ignore
|