fix: Backend formatting
This commit is contained in:
@@ -47,4 +47,3 @@ class ApplicationFormVersion(
|
|||||||
@Column(nullable = false)
|
@Column(nullable = false)
|
||||||
var createdAt: LocalDateTime? = null,
|
var createdAt: LocalDateTime? = null,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -49,4 +49,3 @@ class ApplicationFormVersionController(
|
|||||||
return ResponseEntity.ok(applicationFormMapper.toApplicationFormDto(restoredForm))
|
return ResponseEntity.ok(applicationFormMapper.toApplicationFormDto(restoredForm))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -48,4 +48,3 @@ class ApplicationFormVersionMapper(
|
|||||||
?: throw IllegalStateException("ApplicationFormVersion createdAt must not be null!"),
|
?: throw IllegalStateException("ApplicationFormVersion createdAt must not be null!"),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,4 +16,3 @@ interface ApplicationFormVersionRepository : JpaRepository<ApplicationFormVersio
|
|||||||
|
|
||||||
fun countByApplicationFormId(applicationFormId: UUID): Int
|
fun countByApplicationFormId(applicationFormId: UUID): Int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import com.betriebsratkanzlei.legalconsenthub.form_element.FormElementSection
|
|||||||
import com.betriebsratkanzlei.legalconsenthub.form_element.FormOption
|
import com.betriebsratkanzlei.legalconsenthub.form_element.FormOption
|
||||||
import com.betriebsratkanzlei.legalconsenthub.user.User
|
import com.betriebsratkanzlei.legalconsenthub.user.User
|
||||||
import com.betriebsratkanzlei.legalconsenthub_api.model.ApplicationFormSnapshotDto
|
import com.betriebsratkanzlei.legalconsenthub_api.model.ApplicationFormSnapshotDto
|
||||||
import com.betriebsratkanzlei.legalconsenthub_api.model.FormElementSnapshotDto
|
|
||||||
import com.betriebsratkanzlei.legalconsenthub_api.model.FormElementSectionSnapshotDto
|
import com.betriebsratkanzlei.legalconsenthub_api.model.FormElementSectionSnapshotDto
|
||||||
|
import com.betriebsratkanzlei.legalconsenthub_api.model.FormElementSnapshotDto
|
||||||
import com.betriebsratkanzlei.legalconsenthub_api.model.FormOptionDto
|
import com.betriebsratkanzlei.legalconsenthub_api.model.FormOptionDto
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper
|
import com.fasterxml.jackson.databind.ObjectMapper
|
||||||
import org.springframework.stereotype.Service
|
import org.springframework.stereotype.Service
|
||||||
@@ -151,14 +151,15 @@ class ApplicationFormVersionService(
|
|||||||
type = elementSnapshot.type,
|
type = elementSnapshot.type,
|
||||||
formElementSection = section,
|
formElementSection = section,
|
||||||
options =
|
options =
|
||||||
elementSnapshot.options.map { optionDto ->
|
elementSnapshot.options
|
||||||
FormOption(
|
.map { optionDto ->
|
||||||
value = optionDto.value,
|
FormOption(
|
||||||
label = optionDto.label,
|
value = optionDto.value,
|
||||||
processingPurpose = optionDto.processingPurpose,
|
label = optionDto.label,
|
||||||
employeeDataCategory = optionDto.employeeDataCategory,
|
processingPurpose = optionDto.processingPurpose,
|
||||||
)
|
employeeDataCategory = optionDto.employeeDataCategory,
|
||||||
}.toMutableList(),
|
)
|
||||||
|
}.toMutableList(),
|
||||||
)
|
)
|
||||||
section.formElements.add(element)
|
section.formElements.add(element)
|
||||||
}
|
}
|
||||||
@@ -166,4 +167,3 @@ class ApplicationFormVersionService(
|
|||||||
return section
|
return section
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,4 +6,3 @@ class ApplicationFormVersionNotFoundException(
|
|||||||
applicationFormId: UUID,
|
applicationFormId: UUID,
|
||||||
versionNumber: Int,
|
versionNumber: Int,
|
||||||
) : RuntimeException("Application form version $versionNumber for application form $applicationFormId not found")
|
) : RuntimeException("Application form version $versionNumber for application form $applicationFormId not found")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user