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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ish/email_context.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecce740f5d2efcbf23bae3ac90345798790279b39de3559a1f400911b11107df
4
- data.tar.gz: 8f5a2146fe4099ff9ee7a3869507e98450f57a024b133b8b4706ad4aab384839
3
+ metadata.gz: e1c960b6372f0929c516cc3482738977e2d4b1d8c5ef5c63d27d257c12bfe422
4
+ data.tar.gz: 79971a45405a9c29abb69e8d266dca223a29b4a82a87704b17d548e3123af1eb
5
5
  SHA512:
6
- metadata.gz: e04996ef74d595649d87c22b6f6e828c713f8bc4638f2da49ed85548481467c22e66a3c00b3435afb9337bc863a42eb6c69613598e0889a93124f07bd2b44c3d
7
- data.tar.gz: 491b70c769dd230079e463bc8b2387e7fbf91ae72a0872782b68de4ae0046ad1ffd8d5aa0ad8e68269a659613f03b39e7d565cdc6d498b5d25742348c15e99f5
6
+ metadata.gz: 4f6e88e54a2ee9b656f7e90b5234359c44a4b20a433444090305169810dba8ef919941987430098e5dff11250e0e69f62adeaef40f38f986378bbab752643fc5
7
+ data.tar.gz: a606173a1f1337dcda0efd7a0cf3bfa7a7c171edceaa344b9950a8cba52c215e016c0147aab2ecfe9d7ca359936f48a5beb57197c8037051753dc6014d52bf45
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33.237
4
+ version: 0.0.33.238
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox