From 6d5fe459f007325cdcf1b6167055f624db523e16 Mon Sep 17 00:00:00 2001 From: Jordan Hollinger Date: Sat, 7 Jul 2012 13:22:27 -0400 Subject: [PATCH 1/4] Bugfix to getLastEdited API method, issue #845 --- src/node/db/API.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/node/db/API.js b/src/node/db/API.js index 661b78595..68a57d7d0 100644 --- a/src/node/db/API.js +++ b/src/node/db/API.js @@ -298,7 +298,10 @@ exports.getLastEdited = function(padID, callback) getPadSafe(padID, true, function(err, pad) { if(ERR(err, callback)) return; - callback(null, {lastEdited: pad.getLastEdited()}); + pad.getLastEdit(function(err, value) { + if(ERR(err, callback)) return; + callback(null, {lastEdited: value}); + }); }); } From 9ff3aa0ee07b38332acd3a0bc1805806c42c0532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Bartelme=C3=9F?= Date: Sat, 7 Jul 2012 20:41:26 +0200 Subject: [PATCH 2/4] make /static/tests.html functional again, added getLastEdited --- src/static/tests.html | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/static/tests.html b/src/static/tests.html index bd5bc578f..cbcd90af4 100644 --- a/src/static/tests.html +++ b/src/static/tests.html @@ -3,7 +3,7 @@ API Test and Examples Page - +