nexushub-commands 1.6.4 → 1.6.5
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.
|
@@ -36,7 +36,7 @@ tslib_1.__decorate([
|
|
|
36
36
|
.then((x) => x.text),
|
|
37
37
|
}, (0, evogram_1.stringValidator)({ minLength: 16, maxLength: 16 }), (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ value, context }) {
|
|
38
38
|
const config = Client_1.Client.config(context);
|
|
39
|
-
const promocode = yield config.API.get(`/promocodes/${value}`).then((x) => x.data);
|
|
39
|
+
const promocode = yield config.API.get(`/promocodes/codes/${value}`).then((x) => x.data);
|
|
40
40
|
if (!promocode)
|
|
41
41
|
throw new Error('Промокод не найден');
|
|
42
42
|
return promocode;
|
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@ export class DepositByPromocodeCommand extends Command {
|
|
|
22
22
|
async ({ value, context }) => {
|
|
23
23
|
const config = Client.config(context);
|
|
24
24
|
|
|
25
|
-
const promocode = await config.API.get(`/promocodes/${value}`).then((x) => x.data);
|
|
25
|
+
const promocode = await config.API.get(`/promocodes/codes/${value}`).then((x) => x.data);
|
|
26
26
|
if (!promocode) throw new Error('Промокод не найден');
|
|
27
27
|
|
|
28
28
|
return promocode;
|