Skip to content

Instantly share code, notes, and snippets.

View Sadzeih's full-sized avatar

Alexis Guerville Sadzeih

View GitHub Profile
@Sadzeih
Sadzeih / .js
Last active May 10, 2018 06:36
@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)
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
{