aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-16 17:38:20 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commit109d893ff5353c3061af3062cf9443bcba39aafc (patch)
tree7f9e24eefd0893cab3b1977dc625e966c434725b /server
parentf0c5e8b65792e9f991bf006a3e1d03cfd2c80c24 (diff)
downloadPeerTube-109d893ff5353c3061af3062cf9443bcba39aafc.tar.gz
PeerTube-109d893ff5353c3061af3062cf9443bcba39aafc.tar.zst
PeerTube-109d893ff5353c3061af3062cf9443bcba39aafc.zip
Fix lint
Diffstat (limited to 'server')
-rw-r--r--server/models/server/plugin.ts2
-rw-r--r--server/tests/api/videos/video-blacklist.ts2
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',