news-ai / tabulae

API for media list management
https://tabulae.newsai.org/
0 stars 0 forks source link

extra email send checks for gmail #488

Closed AbhiAgarwal closed 6 years ago

AbhiAgarwal commented 6 years ago
{
    "query": {
        "bool": {
            "must": [{
                "term": {
                    "data.IsSent": true
                }
            }, {
                "term": {
                    "data.Cancel": false
                }
            }, {
                "term": {
                    "data.Delievered": true
                }
            }, {
              "term": 
              {
                    "data.ListId": 4722182508773376
              }
            }, {
               "term": {
                    "data.GmailId": "" 
               }
            }]
        }
    },
    "size": 10,
    "from": 0,
    "sort": [{
        "data.Created": {
            "order": "desc",
            "mode": "avg"
        }
    }]
}
AbhiAgarwal commented 6 years ago

just fixed this. is a little useful, but built it into the last contacted checks instead.