ish_models 0.0.33.237 → 0.0.33.238
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ish/email_context.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1c960b6372f0929c516cc3482738977e2d4b1d8c5ef5c63d27d257c12bfe422
|
4
|
+
data.tar.gz: 79971a45405a9c29abb69e8d266dca223a29b4a82a87704b17d548e3123af1eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f6e88e54a2ee9b656f7e90b5234359c44a4b20a433444090305169810dba8ef919941987430098e5dff11250e0e69f62adeaef40f38f986378bbab752643fc5
|
7
|
+
data.tar.gz: a606173a1f1337dcda0efd7a0cf3bfa7a7c171edceaa344b9950a8cba52c215e016c0147aab2ecfe9d7ca359936f48a5beb57197c8037051753dc6014d52bf45
|
data/lib/ish/email_context.rb
CHANGED
@@ -87,7 +87,8 @@ class ::Ish::EmailContext
|
|
87
87
|
pipeline = [
|
88
88
|
{ '$group' => {
|
89
89
|
'_id' => { '$dateToString' => { 'format' => "%Y-%m-%d", 'date' => "$sent_at" } }, 'total' => { '$sum' => 1 }
|
90
|
-
} }
|
90
|
+
} },
|
91
|
+
{ '$sort' => { '_id': -1 } },
|
91
92
|
]
|
92
93
|
outs = Ish::EmailContext.collection.aggregate( pipeline )
|
93
94
|
outs.to_a
|