Skip to content

Commit 8e7685b

Browse files
committed
refactor: post message after refreshing cache
#2251
1 parent 411f0e0 commit 8e7685b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/ai/elimu/web/content/storybook/StoryBookDeleteController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ public String handleRequest(HttpSession session, @PathVariable Long id) {
9494

9595
// Delete storybook
9696
storyBookDao.delete(storyBook);
97-
98-
DiscordHelper.postToChannel(Channel.CONTENT, "Storybook deleted: \"" + storyBook.getTitle() + "\" (ID " + storyBook.getId() + ")");
9997

10098
// Refresh the REST API cache
10199
storyBooksJsonService.refreshStoryBooksJSONArray();
102100

101+
DiscordHelper.postToChannel(Channel.CONTENT, "Storybook deleted: \"" + storyBook.getTitle() + "\" (ID " + storyBook.getId() + ")");
102+
103103
return "redirect:/content/storybook/list";
104104
}
105105
}

0 commit comments

Comments
 (0)