order2cb 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/order2cb/version.rb +1 -1
- data/lib/order2cb.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1411a0b87f83b8fee806f6ab5b8d0fbfd3552fd5
|
4
|
+
data.tar.gz: 19c3d6652a0e5d40ad5017898624ab55bc2e50a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b45fd83cd834eb8af43df5174f90db2d9c7730366d1fe7cdf6cb66187071fa0eb1fa56527d6279d68b7bbdc857a6f7dba673c2d57eeb2094e5fb446b40bc7c4
|
7
|
+
data.tar.gz: 67e153c1ce427c95a8eadc5118928e1efc43a2a21543aefaf87b9d8d4c2b599602b8f2bfadf17eaf1d736dce2c904ebbaf9709b8d5a662114c3272464165d0fc
|
data/lib/order2cb/version.rb
CHANGED
data/lib/order2cb.rb
CHANGED
@@ -90,7 +90,7 @@ module Order2cb
|
|
90
90
|
|
91
91
|
end
|
92
92
|
|
93
|
-
def orders_to_process(start_time = DateTime.parse(
|
93
|
+
def orders_to_process(start_time = DateTime.parse(4.hours.ago.to_s))
|
94
94
|
results = $db_client.query("SELECT * from exp_spree_orders where completed_at > '#{start_time}';")
|
95
95
|
@logger.debug "Found #{results.count} completed orders in the last #{time_ago_in_words(start_time)} to be processed"
|
96
96
|
results
|