More features

This commit is contained in:
Dobie Wollert
2015-08-23 22:40:30 -07:00
parent 447d80f1b8
commit 68b2c8114b
8 changed files with 38 additions and 10 deletions

View File

@ -115,6 +115,15 @@ module.exports = function(config) {
}
testRun.save(returnResult(res));
Device.findById(testRun.device, function(err, device) {
if (err) {
log.error("Failed to fetch device for testRun: %s", err);
} else {
device.lastTestRun = testRun;
device.save();
}
});
},
update: function(req, res, next) {