diff --git a/drivers/teambition/teambition.go b/drivers/teambition/teambition.go index e44e251c..ced339b8 100644 --- a/drivers/teambition/teambition.go +++ b/drivers/teambition/teambition.go @@ -98,7 +98,7 @@ func (driver Teambition) GetFiles(parentId string, account *model.Account) ([]mo Size: 0, Type: conf.FOLDER, Driver: driver.Config().Name, - UpdatedAt: &collection.Updated, + UpdatedAt: collection.Updated, }) } } @@ -126,7 +126,7 @@ func (driver Teambition) GetFiles(parentId string, account *model.Account) ([]mo Size: work.FileSize, Type: utils.GetFileType(path.Ext(work.FileName)), Driver: driver.Config().Name, - UpdatedAt: &work.Updated, + UpdatedAt: work.Updated, Thumbnail: work.Thumbnail, Url: work.DownloadURL, }) diff --git a/drivers/teambition/types.go b/drivers/teambition/types.go index d62c07dc..6a0b92e0 100644 --- a/drivers/teambition/types.go +++ b/drivers/teambition/types.go @@ -3,22 +3,22 @@ package teambition import "time" type Collection struct { - ID string `json:"_id"` - Title string `json:"title"` - Updated time.Time `json:"updated"` + ID string `json:"_id"` + Title string `json:"title"` + Updated *time.Time `json:"updated"` } type Work struct { - ID string `json:"_id"` - FileName string `json:"fileName"` - FileSize int64 `json:"fileSize"` - FileKey string `json:"fileKey"` - FileCategory string `json:"fileCategory"` - DownloadURL string `json:"downloadUrl"` - ThumbnailURL string `json:"thumbnailUrl"` - Thumbnail string `json:"thumbnail"` - Updated time.Time `json:"updated"` - PreviewURL string `json:"previewUrl"` + ID string `json:"_id"` + FileName string `json:"fileName"` + FileSize int64 `json:"fileSize"` + FileKey string `json:"fileKey"` + FileCategory string `json:"fileCategory"` + DownloadURL string `json:"downloadUrl"` + ThumbnailURL string `json:"thumbnailUrl"` + Thumbnail string `json:"thumbnail"` + Updated *time.Time `json:"updated"` + PreviewURL string `json:"previewUrl"` } type FileUpload struct { diff --git a/drivers/yandex/types.go b/drivers/yandex/types.go index 9aed679d..b54545e1 100644 --- a/drivers/yandex/types.go +++ b/drivers/yandex/types.go @@ -26,7 +26,7 @@ type File struct { //} `json:"exif"` //Created time.Time `json:"created"` //ResourceId string `json:"resource_id"` - Modified time.Time `json:"modified"` + Modified *time.Time `json:"modified"` //MimeType string `json:"mime_type"` File string `json:"file"` //MediaType string `json:"media_type"` diff --git a/drivers/yandex/yandex.go b/drivers/yandex/yandex.go index edb38672..28079136 100644 --- a/drivers/yandex/yandex.go +++ b/drivers/yandex/yandex.go @@ -131,7 +131,7 @@ func (driver Yandex) GetFiles(rawPath string, account *model.Account) ([]model.F Name: file.Name, Size: file.Size, Driver: driver.Config().Name, - UpdatedAt: &file.Modified, + UpdatedAt: file.Modified, Thumbnail: file.Preview, Url: file.File, }