File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/main/java/net/modgarden/backend/handler/v1/discord Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -275,7 +275,6 @@ public static void unsubmit(Context ctx) {
275275 }
276276 String projectId = projectAttributionResult .getString (1 );
277277
278- // Delete the submission from the database.
279278 deleteSubmissionStatement .setString (1 , projectId );
280279 deleteSubmissionStatement .setString (2 , event .id ());
281280 int updated = deleteSubmissionStatement .executeUpdate ();
@@ -292,7 +291,7 @@ public static void unsubmit(Context ctx) {
292291
293292 checkSubmissionStatement .setString (1 , projectId );
294293 ResultSet submissionResult = checkSubmissionStatement .executeQuery ();
295- if (submissionResult .getBoolean (1 )) {
294+ if (! submissionResult .getBoolean (1 )) {
296295 projectDeleteStatement .setString (1 , projectId );
297296 projectDeleteStatement .execute ();
298297
You can’t perform that action at this time.
0 commit comments