Skip to content

Commit c2842cf

Browse files
committed
minor bug that would change status back to active again and log message update
1 parent 76b09e9 commit c2842cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

application/src/main/java/org/togetherjava/tjbot/features/help/HelpThreadLifecycleListener.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ private void handleThreadStatus(long threadId) {
7272

7373
if (status == HelpSystemHelper.TicketStatus.ACTIVE.val) {
7474
changeStatusToArchive(closedAt, threadId);
75+
return;
7576
}
7677

7778
changeStatusToActive(threadId);
@@ -84,7 +85,7 @@ private void changeStatusToArchive(Instant closedAt, long threadId) {
8485
.where(HELP_THREADS.CHANNEL_ID.eq(threadId))
8586
.execute());
8687

87-
logger.info("Thread with id: {}, updated to archived in database", threadId);
88+
logger.info("Thread with id: {}, updated to archived status in database", threadId);
8889
}
8990

9091
private void changeStatusToActive(long threadId) {

0 commit comments

Comments
 (0)