Skip to content

Commit 8427a16

Browse files
author
anandkumarpatel
committed
Merge pull request #486 from CodeNow/cv-dedupe-wrong-error
remove incorrect error bc cv dedupe logic
2 parents 6cc04a8 + 800814b commit 8427a16

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/models/mongo/context-version.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -386,13 +386,6 @@ ContextVersionSchema.methods.setBuildCompleted = function (dockerInfo, cb) {
386386
else if (!dockerInfo.dockerImage) {
387387
cb(Boom.badRequest('ContextVersion requires dockerImage'));
388388
}
389-
else if (dockerInfo.versionId &&
390-
contextVersion._id.toString() !== dockerInfo.versionId.toString()) {
391-
var err = Boom.badRequest('The wrong log is being saved this cv! logId: ' +
392-
dockerInfo.versionId + ' , thisId: ' + contextVersion._id);
393-
error.logIfErr(err);
394-
cb(err);
395-
}
396389
else {
397390
var now = Date.now();
398391
ContextVersion.findOneAndUpdate({

0 commit comments

Comments
 (0)