Skip to content

Commit

Permalink
#585 deadline of 3 days for REV tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
amihaiemil committed Oct 10, 2020
1 parent c329b7c commit 7d11d03
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,13 @@ public Task assign(final Contributor contributor) {
"The given contributor doesn't have the needed contract!"
);
}
return this.storage.tasks().assign(this, contract, 10);
final int deadlineDays;
if(Contract.Roles.REV.equals(this.role())) {
deadlineDays = 3;
} else {
deadlineDays = 10;
}
return this.storage.tasks().assign(this, contract, deadlineDays);
}

@Override
Expand Down

0 comments on commit 7d11d03

Please sign in to comment.