Skip to content

Commit

Permalink
* Fixed deleteAllData.
Browse files Browse the repository at this point in the history
  • Loading branch information
DxsSucuk committed Jul 23, 2022
1 parent a9ad2b4 commit 72f8187
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/de/presti/ree6/sql/SQLWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -1553,10 +1553,13 @@ public void deleteAllData(String guildId) {
for (Class<? extends SQLEntity> aClass : classes) {

String tableName = SQLUtil.getTable(aClass);

if (tableName == null) continue;

List<SQLParameter> sqlParameters = SQLUtil.getAllSQLParameter(aClass,false);

if (sqlParameters.isEmpty()) {
return;
continue;
}

if (sqlParameters.stream().anyMatch(sqlParameter -> sqlParameter.getName().equalsIgnoreCase("GID"))) {
Expand Down

0 comments on commit 72f8187

Please sign in to comment.