Commit b6a97513 authored by priit's avatar priit
Browse files

Mitme faili haldamise err

parent a6c46d5e
...@@ -40,8 +40,8 @@ function SessionService() { ...@@ -40,8 +40,8 @@ function SessionService() {
if(err) return cb(err); if(err) return cb(err);
self.checkSessionDir(sessionId, function (err) { self.checkSessionDir(sessionId, function (err) {
if(err) return cb(err); if(err) return cb(err);
self._storeRequestFiles(session, serviceRequest.files, function (err, session) { self._storeRequestFiles(session, serviceRequest.files, function (err) {
return cb(err, session); return cb(err);
}); });
}); });
}); });
...@@ -67,8 +67,8 @@ function SessionService() { ...@@ -67,8 +67,8 @@ function SessionService() {
callback(); callback();
}); });
}, },
function ( err, session ) { function ( err ) {
cb( err, session ); cb(err);
} }
); );
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment