fix(plugins): Fix functions using id instead of name property
This commit is contained in:
parent
6f35e17fba
commit
2d4c8ebfd9
|
@ -109,7 +109,7 @@ class Plugin:
|
|||
"""
|
||||
from ..controller import pluginController
|
||||
|
||||
return pluginController.get_setting(self.id, name, **kwargs)
|
||||
return pluginController.get_setting(self.name, name, **kwargs)
|
||||
|
||||
def set_setting(self, name: str, value):
|
||||
"""Save setting in database
|
||||
|
@ -120,7 +120,7 @@ class Plugin:
|
|||
"""
|
||||
from ..controller import pluginController
|
||||
|
||||
return pluginController.set_setting(self.id, name, value)
|
||||
return pluginController.set_setting(self.name, name, value)
|
||||
|
||||
def notify(self, user, text: str, data=None):
|
||||
"""Create a new notification for an user
|
||||
|
@ -136,7 +136,7 @@ class Plugin:
|
|||
"""
|
||||
from ..controller import pluginController
|
||||
|
||||
return pluginController.notify(self.id, user, text, data)
|
||||
return pluginController.notify(self.name, user, text, data)
|
||||
|
||||
def serialize(self):
|
||||
"""Serialize a plugin into a dict
|
||||
|
|
Loading…
Reference in New Issue