diff options
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/server/plugin.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/models/server/plugin.ts b/server/models/server/plugin.ts index 1fbfd208f..b3b8276df 100644 --- a/server/models/server/plugin.ts +++ b/server/models/server/plugin.ts | |||
@@ -75,6 +75,16 @@ export class PluginModel extends Model<PluginModel> { | |||
75 | return PluginModel.findAll(query) | 75 | return PluginModel.findAll(query) |
76 | } | 76 | } |
77 | 77 | ||
78 | static load (pluginName: string) { | ||
79 | const query = { | ||
80 | where: { | ||
81 | name: pluginName | ||
82 | } | ||
83 | } | ||
84 | |||
85 | return PluginModel.findOne(query) | ||
86 | } | ||
87 | |||
78 | static uninstall (pluginName: string) { | 88 | static uninstall (pluginName: string) { |
79 | const query = { | 89 | const query = { |
80 | where: { | 90 | where: { |