Fix damaged item push notification route to admins (Admin vs IsAdmin DB field typo) and add direct URL

This commit is contained in:
2026-04-19 14:48:48 +02:00
parent bb146059f3
commit 12d0ab06cf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -5987,7 +5987,7 @@ def report_damage(id):
f"Fuer das Item '{item_doc.get('Name', id)}' wurde ein Defekt gemeldet. "
f"Meldung von {session.get('username', '-')}: {description}"
),
reference={'item_id': id, 'damage_count': damage_count},
reference={'item_id': id, 'damage_count': damage_count, 'url': '/admin/damaged_items'},
severity='danger',
)
+1 -1
View File
@@ -347,7 +347,7 @@ def send_push_to_all_admins(title, body, icon=None, url='/', reference=None):
# Get all admin users
admin_users = list(users_col.find(
{'IsAdmin': True},
{'Admin': True},
{'Username': 1}
))