summaryrefslogtreecommitdiff
path: root/backend
authorMichael Krelin <hacker@klever.net>2014-06-29 19:56:49 (UTC)
committer Michael Krelin <hacker@klever.net>2014-06-29 20:48:23 (UTC)
commitd21898d430781387bc128f83e6f8aead1149a4e5 (patch) (unidiff)
tree15809c4544128bd8a5723cdf96f2b066928edcba /backend
parenta90f522c1e06149420a14100f34b252d7b1119c4 (diff)
downloadclipperz-d21898d430781387bc128f83e6f8aead1149a4e5.zip
clipperz-d21898d430781387bc128f83e6f8aead1149a4e5.tar.gz
clipperz-d21898d430781387bc128f83e6f8aead1149a4e5.tar.bz2
fix a typo in session store implementation
Diffstat (limited to 'backend') (more/less context) (ignore whitespace changes)
-rw-r--r--backend/node/src/clipperz.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/node/src/clipperz.js b/backend/node/src/clipperz.js
index c51b0bc..5b4df0a 100644
--- a/backend/node/src/clipperz.js
+++ b/backend/node/src/clipperz.js
@@ -35,13 +35,13 @@ function clipperz_store(PG) {
35 ) }; 35 ) };
36 rv.prototype.length = function(cb) { PG.Q( 36 rv.prototype.length = function(cb) { PG.Q(
37 "SELECT count(*) AS c FROM clipperz.thesession", function(e,r) { 37 "SELECT count(*) AS c FROM clipperz.thesession", function(e,r) {
38 cb(e,e?null:r.rows[0].c); 38 cb(e,e?null:r.rows[0].c);
39 } 39 }
40 ) }; 40 ) };
41 rv.prototype.length = function(cb) { PQ.Q( 41 rv.prototype.clear = function(cb) { PQ.Q(
42 "DELETE FROM clipperz.thesession", cb 42 "DELETE FROM clipperz.thesession", cb
43 ) }; 43 ) };
44 rv.prototype.__proto__ = express_store.prototype; 44 rv.prototype.__proto__ = express_store.prototype;
45 return rv; 45 return rv;
46} 46}
47 47