Register notification against the plugin class, not the particular label

This commit is contained in:
Oliver Walters 2022-03-25 23:49:15 +11:00
parent b57c4591e5
commit 3e484317d2

View File

@ -228,8 +228,9 @@ def print_label(plugin_slug, label_image, label_instance=None, user=None):
logger.error(f"Label printing failed: Sending notification to user '{user}'")
# Throw an error against the plugin instance
common.notifications.trigger_notifaction(
label_instance,
plugin.plugin_config(),
'label.printing_failed',
targets=[user],
context=ctx,