Fixed stuff #1.1.0
This commit is contained in:
parent
0541f3dfde
commit
296c6e8044
@ -53,6 +53,7 @@ class AchievementOnMessageEvent(OnMessageABC):
|
|||||||
user = self._users.get_user_by_discord_id_and_server_id(message.author.id, server.id)
|
user = self._users.get_user_by_discord_id_and_server_id(message.author.id, server.id)
|
||||||
|
|
||||||
user.message_count += 1
|
user.message_count += 1
|
||||||
|
self._users.update_user(user)
|
||||||
self._db.save_changes()
|
self._db.save_changes()
|
||||||
|
|
||||||
await self._achievements.validate_achievements_for_user(user)
|
await self._achievements.validate_achievements_for_user(user)
|
||||||
|
@ -57,5 +57,6 @@ class AchievementOnReactionAddEvent(OnReactionAddABC):
|
|||||||
|
|
||||||
user.reaction_count += 1
|
user.reaction_count += 1
|
||||||
self._db.save_changes()
|
self._db.save_changes()
|
||||||
|
self._users.update_user(user)
|
||||||
|
|
||||||
await self._achievements.validate_achievements_for_user(user)
|
await self._achievements.validate_achievements_for_user(user)
|
||||||
|
@ -57,5 +57,6 @@ class AchievementOnReactionRemoveEvent(OnReactionRemoveABC):
|
|||||||
|
|
||||||
user.reaction_count -= 1
|
user.reaction_count -= 1
|
||||||
self._db.save_changes()
|
self._db.save_changes()
|
||||||
|
self._users.update_user(user)
|
||||||
|
|
||||||
await self._achievements.validate_achievements_for_user(user)
|
await self._achievements.validate_achievements_for_user(user)
|
||||||
|
@ -69,7 +69,7 @@ export class SidebarService {
|
|||||||
|
|
||||||
async buildMenu(user: UserDTO | null, hasPermission: boolean, isTechnician: boolean = false) {
|
async buildMenu(user: UserDTO | null, hasPermission: boolean, isTechnician: boolean = false) {
|
||||||
this.dashboard = {
|
this.dashboard = {
|
||||||
label: this.translateService.instant("sidebar.dashboard"),
|
label: this.isSidebarOpen ? this.translateService.instant("sidebar.dashboard") : "",
|
||||||
icon: "pi pi-th-large",
|
icon: "pi pi-th-large",
|
||||||
routerLink: "dashboard"
|
routerLink: "dashboard"
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user