Skip to content

Commit 9e308ae

Browse files
committed
Bump SQL.
1 parent baa5199 commit 9e308ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Backend/src/main/java/de/presti/ree6/backend/service/GuildService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ public void addReactionRole(String sessionIdentifier, long guildId, String emoji
900900
reactionRole.setFormattedEmote(formattedEmoji);
901901
reactionRole.setGuildId(guild.getIdLong());
902902
reactionRole.setMessageId(messageIdNumber);
903-
reactionRole.setRoleId(role.getId());
903+
reactionRole.getGuildRoleId().setRoleId(role.getId());
904904

905905
SQLSession.getSqlConnector().getSqlWorker().updateEntity(reactionRole);
906906
} catch (NumberFormatException e) {

Backend/src/main/java/de/presti/ree6/backend/utils/data/container/ReactionRoleContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class ReactionRoleContainer {
2121
EmojiUnion emojiUnion;
2222

2323
public ReactionRoleContainer(ReactionRole reactionRole, GuildContainer guildContainer) {
24-
role = guildContainer.getRoleById(reactionRole.getRoleId());
24+
role = guildContainer.getRoleById(reactionRole.getId());
2525
emoji = reactionRole.getFormattedEmote();
2626
emojiUnion = Emoji.fromFormatted(reactionRole.getFormattedEmote());
2727
}

0 commit comments

Comments
 (0)