Fix bug when user opts not to receive error reports (#5846)

This commit is contained in:
Oliver 2023-11-03 12:47:57 +11:00 committed by GitHub
parent 29a191e05e
commit 30ef4383d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1049,7 +1049,7 @@ def after_error_logged(sender, instance: Error, created: bool, **kwargs):
instance,
'inventree.error_log',
context=context,
targets=users,
targets=target_users,
delivery_methods={common.notifications.UIMessageNotification, },
)