Skip to content

Commit

Permalink
fix: em.close() 추가 (#162)
Browse files Browse the repository at this point in the history
* fix: em.close() 추가

* fix: total에도 추가
  • Loading branch information
skfotakf authored Sep 23, 2023
1 parent d2ef059 commit 902c45b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class AdminRepository(
category = it[3] as String
)
}
em.close()
return formattedResult
}

Expand All @@ -63,6 +64,8 @@ class AdminRepository(
) as nn
""".trimIndent()
)
return query.resultList.first() as Long
val total = query.resultList.first() as Long
em.close()
return total
}
}

0 comments on commit 902c45b

Please sign in to comment.