This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Get("/passages/stats/entries") | |
getStats(@QueryParam("store") store: string, @QueryParam("reader") reader: string, @QueryParam("date", {required: true}) date: string) { | |
let realDate = new Date(date + "T00:00"); | |
let promise = new Promise((resolve, reject) => { | |
let data: {match?, name?} = {}; | |
if (!isNullOrUndefined(reader)) { | |
data.match = { | |
$match: { | |
reader: mongoose.Types.ObjectId(reader) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I hereby claim: | |
* I am sadzeih on github. | |
* I am sadzeih (https://keybase.io/sadzeih) on keybase. | |
* I have a public key ASDELvNWJB9w1EyYfxBsPDsZfEcmH0MOoGQDWAj1FRsHLQo | |
To claim this, I am signing this object: | |
```json | |
{ |