diff options
author | Chocobozzz <me@florianbigard.com> | 2018-10-03 14:35:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-10-03 14:36:00 +0200 |
commit | 499d9015955c0cedd094fbe814dee6235e639627 (patch) | |
tree | b5116cb74b7f2a6ba39dfdc7eda76d2db31e0ca5 /server/helpers/core-utils.ts | |
parent | 6a6951ec103e495160b0e4641ea9bbf8014789c3 (diff) | |
download | PeerTube-499d9015955c0cedd094fbe814dee6235e639627.tar.gz PeerTube-499d9015955c0cedd094fbe814dee6235e639627.tar.zst PeerTube-499d9015955c0cedd094fbe814dee6235e639627.zip |
Fix config endpoint
Diffstat (limited to 'server/helpers/core-utils.ts')
-rw-r--r-- | server/helpers/core-utils.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/server/helpers/core-utils.ts b/server/helpers/core-utils.ts index b1a27e089..00bc0bdda 100644 --- a/server/helpers/core-utils.ts +++ b/server/helpers/core-utils.ts | |||
@@ -8,9 +8,9 @@ import * as createTorrent from 'create-torrent' | |||
8 | import { createHash, pseudoRandomBytes } from 'crypto' | 8 | import { createHash, pseudoRandomBytes } from 'crypto' |
9 | import { isAbsolute, join } from 'path' | 9 | import { isAbsolute, join } from 'path' |
10 | import * as pem from 'pem' | 10 | import * as pem from 'pem' |
11 | import * as rimraf from 'rimraf' | ||
12 | import { URL } from 'url' | 11 | import { URL } from 'url' |
13 | import { truncate } from 'lodash' | 12 | import { truncate } from 'lodash' |
13 | import { exec } from 'child_process' | ||
14 | 14 | ||
15 | const timeTable = { | 15 | const timeTable = { |
16 | ms: 1, | 16 | ms: 1, |
@@ -178,6 +178,8 @@ const bcryptComparePromise = promisify2<any, string, boolean>(bcrypt.compare) | |||
178 | const bcryptGenSaltPromise = promisify1<number, string>(bcrypt.genSalt) | 178 | const bcryptGenSaltPromise = promisify1<number, string>(bcrypt.genSalt) |
179 | const bcryptHashPromise = promisify2<any, string | number, string>(bcrypt.hash) | 179 | const bcryptHashPromise = promisify2<any, string | number, string>(bcrypt.hash) |
180 | const createTorrentPromise = promisify2<string, any, any>(createTorrent) | 180 | const createTorrentPromise = promisify2<string, any, any>(createTorrent) |
181 | const execPromise2 = promisify2<string, any, string>(exec) | ||
182 | const execPromise = promisify1<string, string>(exec) | ||
181 | 183 | ||
182 | // --------------------------------------------------------------------------- | 184 | // --------------------------------------------------------------------------- |
183 | 185 | ||
@@ -203,5 +205,7 @@ export { | |||
203 | bcryptComparePromise, | 205 | bcryptComparePromise, |
204 | bcryptGenSaltPromise, | 206 | bcryptGenSaltPromise, |
205 | bcryptHashPromise, | 207 | bcryptHashPromise, |
206 | createTorrentPromise | 208 | createTorrentPromise, |
209 | execPromise2, | ||
210 | execPromise | ||
207 | } | 211 | } |