Skip to content

Commit 4ec0691

Browse files
authored
fix qotw (#294)
1 parent 44cb5c0 commit 4ec0691

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

src/main/java/net/javadiscord/javabot/systems/qotw/submissions/SubmissionControlsManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ public void sendControls() {
8181
if (thread.getMessageCount() <= 1) {
8282
new QOTWNotificationService(guild)
8383
.sendSubmissionActionNotification(guild.getJDA().getSelfUser(), thread, SubmissionStatus.DELETED, "Empty Submission");
84+
DbHelper.doDaoAction(QOTWSubmissionRepository::new, dao -> dao.deleteSubmission(thread.getIdLong()));
8485
thread.delete().queue();
8586
return;
8687
}

src/main/resources/migrations/05-09-2022_fix_qotw_submissions.sql

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UPDATE qotw_submissions SET status = 2 WHERE question_number = 74 AND status = 0

0 commit comments

Comments
 (0)