couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Shorin <kxe...@gmail.com>
Subject Re: confused about date parsing
Date Wed, 29 Jan 2014 22:17:50 GMT
On Thu, Jan 30, 2014 at 2:13 AM, Dan Santner <dansantner@me.com> wrote:
>                                 var today = new Date();

This value will be computed only once when document get indexed, not
each time when you query the view. You need to make key as
outDoc.expiryAge and pass current date with endkey query parameter to
fetch expired docs

--
,,,^..^,,,

Mime
View raw message