Prevent username retrieval if user is not authenticated and fix variable naming in DiscordAppealMapper.
This commit is contained in:
parent
d69ef2cd20
commit
1d76895cbb
|
|
@ -11,7 +11,7 @@ public interface DiscordAppealMapper {
|
|||
|
||||
@Insert("""
|
||||
INSERT INTO discord_appeals (uuid, discord_id, discord_username, reason, created_at, send_at, e_mail, assigned_to)
|
||||
VALUES (#{uuid}, #{discord_id}, #{discord_username}, #{reason}, #{createdAt}, #{sendAt}, #{email}, #{assignedTo})
|
||||
VALUES (#{uuid}, #{discordId}, #{discordUsername}, #{reason}, #{createdAt}, #{sendAt}, #{email}, #{assignedTo})
|
||||
""")
|
||||
void createDiscordAppeal(DiscordAppeal discordAppeal);
|
||||
|
||||
|
|
|
|||
|
|
@ -53,6 +53,9 @@ export class AuthService {
|
|||
console.log("Reloading username for localhost");
|
||||
this._username.set('developer');
|
||||
}
|
||||
if (!this.isAuthenticated$()) {
|
||||
return;
|
||||
}
|
||||
this.loginService.getUsername().subscribe({
|
||||
next: (username) => {
|
||||
console.log("Username retrieved: " + username.username);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user