Skip to content

Commit ad44452

Browse files
author
Al Scott
committed
Mark transaction as read only
1 parent 42e0c6b commit ad44452

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/campspot/resources/PunchResource.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class PunchResource(private val punchLib: PunchLib) {
3636
@GET
3737
@Timed
3838
@Valid
39-
@Transaction(TransactionIsolationLevel.READ_COMMITTED)
39+
@Transaction(TransactionIsolationLevel.READ_COMMITTED, readOnly = true)
4040
fun list(
4141
@NotNull @UnwrapValidatedValue @QueryParam("start") start: ZonedDateTimeParam,
4242
@NotNull @UnwrapValidatedValue @QueryParam("end") end: ZonedDateTimeParam

0 commit comments

Comments
 (0)