From 7d11d03fd4391a7071d18cd8e9c3a121dba050c1 Mon Sep 17 00:00:00 2001 From: amihaiemil Date: Sat, 10 Oct 2020 14:15:13 +0300 Subject: [PATCH] #585 deadline of 3 days for REV tasks --- .../src/main/java/com/selfxdsd/core/tasks/StoredTask.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/self-core-impl/src/main/java/com/selfxdsd/core/tasks/StoredTask.java b/self-core-impl/src/main/java/com/selfxdsd/core/tasks/StoredTask.java index 68f5a7ca..48f52db0 100644 --- a/self-core-impl/src/main/java/com/selfxdsd/core/tasks/StoredTask.java +++ b/self-core-impl/src/main/java/com/selfxdsd/core/tasks/StoredTask.java @@ -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