API: add a "dateFinished" field to TorrentProperties

This commit is contained in:
Jesse Chan
2021-05-17 21:17:28 +08:00
parent f8ea2b5d71
commit 4e6d4136cb
7 changed files with 15 additions and 1 deletions
@@ -331,6 +331,7 @@ class TransmissionClientGatewayService extends ClientGatewayService {
'haveValid',
'addedDate',
'dateCreated',
'doneDate',
'rateDownload',
'rateUpload',
'downloadedEver',
@@ -365,6 +366,7 @@ class TransmissionClientGatewayService extends ClientGatewayService {
bytesDone: torrent.haveValid,
dateAdded: torrent.addedDate,
dateCreated: torrent.dateCreated,
dateFinished: torrent.doneDate,
directory: torrent.downloadDir,
downRate: torrent.rateDownload,
downTotal: torrent.downloadedEver,