Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix last commit

  • Loading branch information...
commit 0c34b3dd476e14d771c6559a2aff6b2848397d68 1 parent 4e5cb8b
Pau Ramon Revilla masylum authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/model.js
2  lib/model.js
@@ -99,7 +99,7 @@ module.exports = function (db, collection_name) {
99 99 if (!validator.hasErrors()) {
100 100 model.onCreateInstance(element, function (error, element) {
101 101 model.mongoCall('insert', element, function (error, element) {
102   - if (element[0]) {
  102 + if (element) {
103 103 validator.updated_model = element[0];
104 104 }
105 105 callback(error, validator);

0 comments on commit 0c34b3d

Please sign in to comment.
Something went wrong with that request. Please try again.