Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update crudl-model dependency and bump version

  • Loading branch information...
commit 660b3e820e224de37f90e509905f65d95353b5f7 1 parent 9136b4e
@dgf authored
Showing with 8 additions and 5 deletions.
  1. +1 −1  lib/c3store.js
  2. +2 −2 package.json
  3. +5 −2 src/c3store.coffee
View
2  lib/c3store.js
@@ -56,7 +56,7 @@
sid: sid
}
};
- return this.Session["delete"](q, success, error);
+ return this.Session.destroy(q, success, error);
};
C3Store.prototype.length = function(callback) {
View
4 package.json
@@ -1,6 +1,6 @@
{
"name": "c3store"
- , "version": "0.0.2"
+ , "version": "0.0.3"
, "author": "Danny Gräf <github@dagnu.de>"
, "keywords": ["session", "store", "SQL"]
@@ -20,7 +20,7 @@
"coffee-script": "1.2.x"
, "underscore": "1.3.x"
, "sequelize": "1.3.x"
- , "crudl-model": "0.0.x"
+ , "crudl-model": "0.1.x"
}
, "devDependencies": {
"connect": "1.8.x"
View
7 src/c3store.coffee
@@ -28,7 +28,7 @@ class C3Store
success = -> callback?()
error = (error) -> callback? error
q = where: sid: sid
- @Session.delete q, success, error
+ @Session.destroy q, success, error
length: (callback) ->
success = (count) -> callback? count
@@ -53,5 +53,8 @@ class C3Store
@Session.create s, success, error
module.exports = (connect) ->
+#
C3Store:: __proto__ = connect.session.Store.prototype
- (sequelize, model) -> new C3Store sequelize.define 'Session', _.extend(SessionModel, model)
+
+ (sequelize, model) -> new C3Store sequelize.define 'Session',
+ _.extend(SessionModel, model)
Please sign in to comment.
Something went wrong with that request. Please try again.