mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-02-11 03:49:15 +00:00
put all lines by signle query
This commit is contained in:
parent
24007ff7ff
commit
e938dedc4f
@ -136,20 +136,19 @@ exports.init = function(app, callback) {
|
|||||||
{lines: lines}
|
{lines: lines}
|
||||||
);
|
);
|
||||||
|
|
||||||
// write build logs to db
|
|
||||||
_(lines).each(function(line) {
|
_(lines).each(function(line) {
|
||||||
db.logLines.put(_({
|
line.buildId = build.id;
|
||||||
buildId: build.id,
|
});
|
||||||
}).extend(line), function(err) {
|
// write build logs to db
|
||||||
if (err) {
|
db.logLines.put(lines, function(err) {
|
||||||
logger.error(
|
if (err) {
|
||||||
'Error during write log line "' + logLineNumber +
|
logger.error(
|
||||||
'" for build "' + build.id + '":',
|
'Error during write log line "' + logLineNumber +
|
||||||
err.stack || err
|
'" for build "' + build.id + '":',
|
||||||
);
|
err.stack || err
|
||||||
}
|
);
|
||||||
});
|
}
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
callback(null, distributor);
|
callback(null, distributor);
|
||||||
|
Loading…
Reference in New Issue
Block a user