Upgrade server depencencies

This commit is contained in:
Chocobozzz 2018-03-13 16:00:39 +01:00
parent 5c328e6610
commit c39ea24b71
No known key found for this signature in database
GPG key ID: 583A612D890159BE
4 changed files with 376 additions and 1093 deletions

View file

@ -36,7 +36,7 @@ function transactionRetryer <T> (func: (err: any, data: T) => any) {
})
}
function updateInstanceWithAnother <T> (instanceToUpdate: Model<T>, baseInstance: Model<T>) {
function updateInstanceWithAnother <T extends Model<T>> (instanceToUpdate: Model<T>, baseInstance: Model<T>) {
const obj = baseInstance.toJSON()
for (const key of Object.keys(obj)) {