diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/models/server/plugin.ts | 2 | ||||
-rw-r--r-- | server/tests/api/videos/video-blacklist.ts | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/server/models/server/plugin.ts b/server/models/server/plugin.ts index ba43713f6..50963ba57 100644 --- a/server/models/server/plugin.ts +++ b/server/models/server/plugin.ts | |||
@@ -154,7 +154,7 @@ export class PluginModel extends Model<PluginModel> { | |||
154 | } | 154 | } |
155 | 155 | ||
156 | return PluginModel.findOne(query) | 156 | return PluginModel.findOne(query) |
157 | .then((c: any) => { | 157 | .then((c: any) => { |
158 | if (!c) return undefined | 158 | if (!c) return undefined |
159 | 159 | ||
160 | return c.value | 160 | return c.value |
diff --git a/server/tests/api/videos/video-blacklist.ts b/server/tests/api/videos/video-blacklist.ts index 8760a4787..854b2f0cb 100644 --- a/server/tests/api/videos/video-blacklist.ts +++ b/server/tests/api/videos/video-blacklist.ts | |||
@@ -421,6 +421,8 @@ describe('Test video blacklist', function () { | |||
421 | }) | 421 | }) |
422 | 422 | ||
423 | it('Should auto blacklist a video on URL import', async function () { | 423 | it('Should auto blacklist a video on URL import', async function () { |
424 | this.timeout(15000) | ||
425 | |||
424 | const attributes = { | 426 | const attributes = { |
425 | targetUrl: getYoutubeVideoUrl(), | 427 | targetUrl: getYoutubeVideoUrl(), |
426 | name: 'URL import', | 428 | name: 'URL import', |