Permalink
Browse files

Fix typo

  • Loading branch information...
1 parent 1143949 commit 81784d491054eacc84e560b84e0cd652b8d95592 @1602 committed Jan 23, 2014
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/model.js
  2. +1 −1 lib/sql.js
  3. +1 −1 package.json
View
@@ -356,7 +356,7 @@ AbstractClass.upsert = AbstractClass.updateOrCreate = function upsert(data, call
this.schema.adapter.updateOrCreate(Model.modelName, Model._forDB(inst.toObject(true)), function (err, data) {
var obj;
if (data) {
- data = inst._fromDB(data);
+ data = inst.constructor._fromDB(data);
inst._initProperties(data);
obj = inst;
} else {
View
@@ -44,7 +44,7 @@ BaseSQL.prototype.defineProperty = function (model, prop, params) {
BaseSQL.prototype.escapeId = function(id) {
if (this.schema.settings.slave) {
- return '"' + ('undefined' === typeof id ? '' : id.toString().replace(/["\n]/g, '')) + '"';
+ return '"' + ('undefined' !== typeof id ? '' : id.toString().replace(/["\n]/g, '')) + '"';
} else {
var idNumber = Number(id);
if (isNaN(idNumber)) {
View
@@ -1,7 +1,7 @@
{
"name": "jugglingdb",
"description": "ORM for every database: redis, mysql, neo4j, mongodb, couchdb, postgres, sqlite",
- "version": "0.2.11",
+ "version": "0.2.11-1",
"author": "Anatoliy Chakkaev <rpm1602@gmail.com>",
"contributors": [
{

0 comments on commit 81784d4

Please sign in to comment.