|
|
@@ -175,7 +175,7 @@ module.exports = {
|
|
|
for(let i = 0; i < response.data.orders.length; i++){
|
|
|
let transaction = new Transaction({
|
|
|
merchant: merchant._id,
|
|
|
- date: new Date(response.data.orders[i].closed_at),
|
|
|
+ date: new Date(response.data.orders[i].created_at),
|
|
|
posId: response.data.orders[i].id,
|
|
|
recipes: []
|
|
|
});
|
|
|
@@ -217,7 +217,7 @@ module.exports = {
|
|
|
for(let i = 0; i < response.data.orders.length; i++){
|
|
|
let transaction = new Transaction({
|
|
|
merchant: merchant._id,
|
|
|
- date: new Date(response.data.orders[i].closed_at),
|
|
|
+ date: new Date(response.data.orders[i].created_at),
|
|
|
posId: response.data.orders[i].id,
|
|
|
recipes: []
|
|
|
});
|