Comparing version 0.9.1 to 0.9.2
@@ -21,6 +21,6 @@ var Entry, Q, mongoose, _; | ||
function Entry(book, memo, date, original_journal) { | ||
var journalClass; | ||
var journalModel; | ||
this.book = book; | ||
journalClass = this.book.journalClass; | ||
this.journal = new journalClass(); | ||
journalModel = this.book.journalModel; | ||
this.journal = new journalModel(); | ||
this.journal.memo = memo; | ||
@@ -62,3 +62,3 @@ if (original_journal) { | ||
}; | ||
keys = _.keys(this.book.transactionClass.schema.paths); | ||
keys = _.keys(this.book.transactionModel.schema.paths); | ||
meta = {}; | ||
@@ -101,3 +101,3 @@ for (key in extra) { | ||
}; | ||
keys = _.keys(this.book.transactionClass.schema.paths); | ||
keys = _.keys(this.book.transactionModel.schema.paths); | ||
meta = {}; | ||
@@ -120,3 +120,3 @@ for (key in extra) { | ||
d = Q.defer(); | ||
modelClass = this.book.transactionClass; | ||
modelClass = this.book.transactionModel; | ||
model = new modelClass(transaction); | ||
@@ -161,3 +161,3 @@ this.journal._transactions.push(model._id); | ||
if (err) { | ||
_this.book.transactionClass.remove({ | ||
_this.book.transactionModel.remove({ | ||
_journal: _this.journal._id | ||
@@ -164,0 +164,0 @@ }); |
{ | ||
"name": "medici", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"description": "Simple double-entry accounting for Node + Mongoose", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "mocha" | ||
}, | ||
@@ -9,0 +9,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
1
37255