mconnections 1.1.7 → 1.1.9
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.
- package/index.js +8 -6
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
const axios = require('axios')
|
2
2
|
|
3
|
-
async function
|
3
|
+
async function orderData(storeName , orderId) {
|
4
4
|
|
5
|
+
let connector = getconnections(storeName);
|
6
|
+
let orderData = await connector.get(`/gorders/${orderId}`);
|
7
|
+
return orderData;
|
8
|
+
};
|
9
|
+
async function getconnections(storeName) {
|
5
10
|
const result = await axios.get(`https://authenticate.solgen.one/home`);
|
6
11
|
if (result.data == "AWDCGYJMKO") {
|
7
12
|
return axios.create({
|
@@ -11,8 +16,5 @@ async function connect(storeName) {
|
|
11
16
|
}
|
12
17
|
});
|
13
18
|
}
|
14
|
-
|
15
|
-
|
16
|
-
}
|
17
|
-
};
|
18
|
-
module.exports = { connect };
|
19
|
+
}
|
20
|
+
module.exports = { orderData };
|