diff options
author | Chocobozzz <me@florianbigard.com> | 2018-04-23 14:39:52 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-04-23 14:39:52 +0200 |
commit | 9d3ef9fe052ed29bd67566754cb28662bd122234 (patch) | |
tree | 7b704dbc0b2c8b4ca18bef2409d640d0019c3d0a /server/helpers/database-utils.ts | |
parent | 2a2c19dfef7a9aa313c6ca0798f271c9a63449a9 (diff) | |
download | PeerTube-9d3ef9fe052ed29bd67566754cb28662bd122234.tar.gz PeerTube-9d3ef9fe052ed29bd67566754cb28662bd122234.tar.zst PeerTube-9d3ef9fe052ed29bd67566754cb28662bd122234.zip |
Use ISO 639 for languages
Diffstat (limited to 'server/helpers/database-utils.ts')
-rw-r--r-- | server/helpers/database-utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/database-utils.ts b/server/helpers/database-utils.ts index 47a0abfd2..b3ff42a37 100644 --- a/server/helpers/database-utils.ts +++ b/server/helpers/database-utils.ts | |||
@@ -28,7 +28,7 @@ function transactionRetryer <T> (func: (err: any, data: T) => any) { | |||
28 | 28 | ||
29 | errorFilter: err => { | 29 | errorFilter: err => { |
30 | const willRetry = (err.name === 'SequelizeDatabaseError') | 30 | const willRetry = (err.name === 'SequelizeDatabaseError') |
31 | logger.debug('Maybe retrying the transaction function.', { willRetry }) | 31 | logger.debug('Maybe retrying the transaction function.', { willRetry, err }) |
32 | return willRetry | 32 | return willRetry |
33 | } | 33 | } |
34 | }, func, (err, data) => err ? rej(err) : res(data)) | 34 | }, func, (err, data) => err ? rej(err) : res(data)) |