diff options
author | Chocobozzz <me@florianbigard.com> | 2022-07-13 11:58:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-07-13 12:14:26 +0200 |
commit | ba2684ceddf9b76312635b9cddc6bf6975ce436a (patch) | |
tree | d7c9618b9a6f632029d809d8bf342adc26c85cc8 /server/lib/plugins | |
parent | e45dd87b93c621c606415f9e8d0d381de6d7a2d7 (diff) | |
download | PeerTube-ba2684ceddf9b76312635b9cddc6bf6975ce436a.tar.gz PeerTube-ba2684ceddf9b76312635b9cddc6bf6975ce436a.tar.zst PeerTube-ba2684ceddf9b76312635b9cddc6bf6975ce436a.zip |
Fix lint
Diffstat (limited to 'server/lib/plugins')
-rw-r--r-- | server/lib/plugins/plugin-manager.ts | 2 | ||||
-rw-r--r-- | server/lib/plugins/video-constant-manager-factory.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/plugins/plugin-manager.ts b/server/lib/plugins/plugin-manager.ts index 1305f660f..c21ebd0c5 100644 --- a/server/lib/plugins/plugin-manager.ts +++ b/server/lib/plugins/plugin-manager.ts | |||
@@ -563,7 +563,7 @@ export class PluginManager implements ServerHook { | |||
563 | if (!this.hooks[options.target]) this.hooks[options.target] = [] | 563 | if (!this.hooks[options.target]) this.hooks[options.target] = [] |
564 | 564 | ||
565 | this.hooks[options.target].push({ | 565 | this.hooks[options.target].push({ |
566 | npmName: npmName, | 566 | npmName, |
567 | pluginName: plugin.name, | 567 | pluginName: plugin.name, |
568 | handler: options.handler, | 568 | handler: options.handler, |
569 | priority: options.priority || 0 | 569 | priority: options.priority || 0 |
diff --git a/server/lib/plugins/video-constant-manager-factory.ts b/server/lib/plugins/video-constant-manager-factory.ts index f04dde29f..5f7edfbe2 100644 --- a/server/lib/plugins/video-constant-manager-factory.ts +++ b/server/lib/plugins/video-constant-manager-factory.ts | |||
@@ -97,7 +97,7 @@ export class VideoConstantManagerFactory { | |||
97 | } | 97 | } |
98 | } | 98 | } |
99 | 99 | ||
100 | this.updatedVideoConstants[type][npmName].added.push({ key: key, label } as VideoConstant) | 100 | this.updatedVideoConstants[type][npmName].added.push({ key, label } as VideoConstant) |
101 | obj[key] = label | 101 | obj[key] = label |
102 | 102 | ||
103 | return true | 103 | return true |