@riocrypto/common-server 1.0.1047 → 1.0.1048
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.
|
@@ -26,10 +26,10 @@ class InvopopClient {
|
|
|
26
26
|
var _a, _b;
|
|
27
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
28
|
const uuid = (0, uuid_1.v1)();
|
|
29
|
-
const
|
|
30
|
-
const year =
|
|
31
|
-
const month = String(
|
|
32
|
-
const day = String(
|
|
29
|
+
const date = new Date(order.createdAt);
|
|
30
|
+
const year = date.getFullYear();
|
|
31
|
+
const month = String(date.getMonth() + 1).padStart(2, "0"); // Month is zero-indexed
|
|
32
|
+
const day = String(date.getDate()).padStart(2, "0");
|
|
33
33
|
const formattedDate = `${year}-${month}-${day}`;
|
|
34
34
|
const { data } = yield axios_1.default.put(`${this.baseUrl}/transform/v1/jobs/${uuid}`, {
|
|
35
35
|
workflow_id: "5b123900-1035-4c8c-a97a-36b940d7a21e",
|