diff options
author | Aleksandr <ognelisar@gmail.com> | 2017-10-20 09:46:28 +0700 |
---|---|---|
committer | Aleksandr <ognelisar@gmail.com> | 2017-10-20 09:46:28 +0700 |
commit | 6c4ae350eb6444f1d811e2db4f92c96cd331ad74 (patch) | |
tree | 900adc960c55d775cd2fd27be8fe4c462cbbe8b7 /src/main/scala/xyz/driver/pdsuidomain/formats/json/document/ApiPartialDocument.scala | |
parent | 0eb0f1b877237fe20069e66ca460549e5e96377c (diff) | |
parent | 9ca0cae09bc880ce083c2a49ae3804889cc9d4c4 (diff) | |
download | rest-query-6c4ae350eb6444f1d811e2db4f92c96cd331ad74.tar.gz rest-query-6c4ae350eb6444f1d811e2db4f92c96cd331ad74.tar.bz2 rest-query-6c4ae350eb6444f1d811e2db4f92c96cd331ad74.zip |
Merge branch 'master' into TRIAL-55
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/formats/json/document/ApiPartialDocument.scala')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/formats/json/document/ApiPartialDocument.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/formats/json/document/ApiPartialDocument.scala b/src/main/scala/xyz/driver/pdsuidomain/formats/json/document/ApiPartialDocument.scala index 032ddf6..ecbdaed 100644 --- a/src/main/scala/xyz/driver/pdsuidomain/formats/json/document/ApiPartialDocument.scala +++ b/src/main/scala/xyz/driver/pdsuidomain/formats/json/document/ApiPartialDocument.scala @@ -47,7 +47,8 @@ final case class ApiPartialDocument(recordId: Option[Long], meta = meta.cata(x => Some(TextJson(JsonSerializer.deserialize[Meta](x))), None, orig.meta), startDate = startDate.cata(Some(_), None, orig.startDate), endDate = endDate.cata(Some(_), None, orig.endDate), - lastUpdate = LocalDateTime.MIN // Should update internally in a business logic module + lastUpdate = LocalDateTime.MIN, // Should update internally in a business logic module, + labelVersion = orig.labelVersion ) def toDomain: Try[Document] = Try { @@ -75,7 +76,8 @@ final case class ApiPartialDocument(recordId: Option[Long], assignee = None, previousAssignee = None, lastActiveUserId = None, - lastUpdate = LocalDateTime.MIN + lastUpdate = LocalDateTime.MIN, + labelVersion = 0 ) } else { throw new JsonValidationException(validationErrors) |