Sorry,

simply pasting from Futon...
Ignore them.

"SetCancelled": "function(doc,req) {doc['cancelled']=true; doc['cancelledDate']=Date.now(); return [doc, 'ok'];}", "SetLastVisit": "function(doc,req) {doc['lastvisit']=Date.now(); return [doc, 'ok'];}"

&

"cancelled": true,
"cancelledDate": "2015-01-10T00:34:19.654Z",
"lastvisit": 1423181473571

------------------------------------------------------------------------
*With best regards,*
Kiril Stankov,
CEO


           This Email disclaimer
           <http://open-net.biz/emailsignature.html> is integral part
           of this message.

On 2/6/2015 2:12 AM, Giovanni P wrote:
what is this formatting you're using? it is really difficult to read all
those |||

On Thu, Feb 5, 2015 at 10:07 PM, Kiril Stankov <[email protected]> wrote:

Hi,

I have two update handlers:

||"|SetCancelled|":|"function(doc,req) {doc['cancelled']=true;
doc['cancelledDate']=Date.now(); return [doc, 'ok'];}"|,
"|SetLastVisit|":|"function(doc,req) {doc['lastvisit']=Date.now(); return
[doc, 'ok'];}"


|||

How can it be one is writing the date as Unix date, and the other as Java
Date??

|    "|cancelled|":|true|,
    "|cancelledDate|":|"2015-02-03T00:34:19.654Z"|,
    "|lastvisit|":|1423180381094||


I call them one after the other?

Thanks in advance!
------------------------------------------------------------------------
*With best regards,*
Kiril Stankov



Reply via email to