diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-13 16:00:39 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-13 16:00:39 +0100 |
commit | c39ea24b7199a391e57c698e93d76d30bc0e9399 (patch) | |
tree | cf3bc63fd3fed1203f13d66b6acf74e8be82ebfa /server/helpers | |
parent | 5c328e6610f451d114c30d3a3b4e5d41b3b4b612 (diff) | |
download | PeerTube-c39ea24b7199a391e57c698e93d76d30bc0e9399.tar.gz PeerTube-c39ea24b7199a391e57c698e93d76d30bc0e9399.tar.zst PeerTube-c39ea24b7199a391e57c698e93d76d30bc0e9399.zip |
Upgrade server depencencies
Diffstat (limited to 'server/helpers')
-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 b4adaf9cc..31808f9e4 100644 --- a/server/helpers/database-utils.ts +++ b/server/helpers/database-utils.ts | |||
@@ -36,7 +36,7 @@ function transactionRetryer <T> (func: (err: any, data: T) => any) { | |||
36 | }) | 36 | }) |
37 | } | 37 | } |
38 | 38 | ||
39 | function updateInstanceWithAnother <T> (instanceToUpdate: Model<T>, baseInstance: Model<T>) { | 39 | function updateInstanceWithAnother <T extends Model<T>> (instanceToUpdate: Model<T>, baseInstance: Model<T>) { |
40 | const obj = baseInstance.toJSON() | 40 | const obj = baseInstance.toJSON() |
41 | 41 | ||
42 | for (const key of Object.keys(obj)) { | 42 | for (const key of Object.keys(obj)) { |