aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/poolRequests.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-02-07 10:39:37 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-02-07 10:39:37 +0100
commitb3077e417056f18225957f65419b87de72117fe3 (patch)
treebe00437c83175ca09b184df6fb21ffe149e11ff8 /lib/poolRequests.js
parentc5a8be2b6282d2042e469e1b7c1e7ce8795c026f (diff)
downloadPeerTube-b3077e417056f18225957f65419b87de72117fe3.tar.gz
PeerTube-b3077e417056f18225957f65419b87de72117fe3.tar.zst
PeerTube-b3077e417056f18225957f65419b87de72117fe3.zip
Standard v6
Diffstat (limited to 'lib/poolRequests.js')
-rw-r--r--lib/poolRequests.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/poolRequests.js b/lib/poolRequests.js
index 5b7d5489d..9ea41f383 100644
--- a/lib/poolRequests.js
+++ b/lib/poolRequests.js
@@ -41,7 +41,7 @@
41 } 41 }
42 42
43 // Remove the request of the other type 43 // Remove the request of the other type
44 PoolRequests.removeById(id, function (err) { 44 PoolRequests.removeRequestById(id, function (err) {
45 if (err) { 45 if (err) {
46 logger.error('Cannot remove a pool request.', { error: err }) 46 logger.error('Cannot remove a pool request.', { error: err })
47 return // Abort 47 return // Abort
@@ -49,7 +49,7 @@
49 }) 49 })
50 } else { 50 } else {
51 PoolRequests.create(id, type, request, function (err) { 51 PoolRequests.create(id, type, request, function (err) {
52 logger.error('Cannot create a pool request.', { error: err }) 52 if (err) logger.error('Cannot create a pool request.', { error: err })
53 return // Abort 53 return // Abort
54 }) 54 })
55 } 55 }