From 351b139bdde3d47fb1f13e1f9f839f8d6cd23050 Mon Sep 17 00:00:00 2001 From: Kseniya Tomskikh Date: Thu, 12 Oct 2017 15:07:50 +0700 Subject: Revert "PDSUI-1088 Added labelVersion to documents" --- .../pdsuidomain/formats/json/document/ApiPartialDocument.scala | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/main/scala/xyz/driver/pdsuidomain/formats/json/document/ApiPartialDocument.scala') 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 ecbdaed..032ddf6 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,8 +47,7 @@ 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, - labelVersion = orig.labelVersion + lastUpdate = LocalDateTime.MIN // Should update internally in a business logic module ) def toDomain: Try[Document] = Try { @@ -76,8 +75,7 @@ final case class ApiPartialDocument(recordId: Option[Long], assignee = None, previousAssignee = None, lastActiveUserId = None, - lastUpdate = LocalDateTime.MIN, - labelVersion = 0 + lastUpdate = LocalDateTime.MIN ) } else { throw new JsonValidationException(validationErrors) -- cgit v1.2.3