Skip to content

Commit

Permalink
Fix a few mistakes.
Browse files Browse the repository at this point in the history
  • Loading branch information
DxsSucuk committed Nov 1, 2024
1 parent 8bae5fd commit 96c0ffe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/de/presti/ree6/sql/SQLWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,7 @@ public Mono<Boolean> existsInvite(long guildId, String inviteCreator, String inv
* @param inviteCode the Code of the Invite.
*/
public void removeInvite(long guildId, String inviteCode) {
deleteEntityInternally(getInvite(guildId, inviteCode));
getInvite(guildId, inviteCode).subscribe(x -> x.ifPresent(this::deleteEntityInternally));
}

/**
Expand Down Expand Up @@ -1600,7 +1600,7 @@ public Mono<Optional<Invite>> getInvite(long guildId, long inviteCreator, String
* @param inviteCode the Code of the Invite.
*/
public void removeInvite(long guildId, long inviteCreator, String inviteCode) {
deleteEntityInternally(getInvite(guildId, inviteCreator, inviteCode));
getInvite(guildId, inviteCreator, inviteCode).subscribe(x -> x.ifPresent(this::deleteEntityInternally));
}

/**
Expand All @@ -1612,7 +1612,7 @@ public void removeInvite(long guildId, long inviteCreator, String inviteCode) {
* @param inviteUsage the usage count of the Invite.
*/
public void removeInvite(long guildId, long inviteCreator, String inviteCode, long inviteUsage) {
deleteEntityInternally(getInvite(guildId, inviteCreator, inviteCode, inviteUsage));
getInvite(guildId, inviteCreator, inviteCode, inviteUsage).subscribe(x -> x.ifPresent(this::deleteEntityInternally));
}

/**
Expand Down Expand Up @@ -2075,7 +2075,7 @@ public void addBirthday(long guildId, long channelId, long userId, String birthd
* @param userId the ID of the User.
*/
public void removeBirthday(long guildId, long userId) {
getEntity(new BirthdayWish(), "FROM BirthdayWish WHERE guildId=:gid AND userId=:uid", Map.of("gid", guildId, "uid", userId)).subscribe(this::deleteEntityInternally);
getEntity(new BirthdayWish(), "FROM BirthdayWish WHERE guildId=:gid AND userId=:uid", Map.of("gid", guildId, "uid", userId)).subscribe(x -> x.ifPresent(this::deleteEntityInternally));
}

/**
Expand Down

0 comments on commit 96c0ffe

Please sign in to comment.