Commit 93339875 authored by Tristan Cavelier's avatar Tristan Cavelier

job rules improved to compare attachment too

parent e336ad5e
...@@ -48,6 +48,8 @@ var jobRules = (function () { ...@@ -48,6 +48,8 @@ var jobRules = (function () {
that.default_action = that.none; that.default_action = that.none;
that.default_compare = function (job1, job2) { that.default_compare = function (job1, job2) {
return (job1.getCommand().getDocId() === job2.getCommand().getDocId() && return (job1.getCommand().getDocId() === job2.getCommand().getDocId() &&
job1.getCommand().getAttachmentId() ===
job2.getCommand().getAttachmentId() &&
job1.getCommand().getDocInfo('_rev') === job1.getCommand().getDocInfo('_rev') ===
job2.getCommand().getDocInfo('_rev') && job2.getCommand().getDocInfo('_rev') &&
job1.getCommand().getOption('rev') === job1.getCommand().getOption('rev') ===
......
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