🐛 close #581 teambition update time error

This commit is contained in:
Xhofe
2022-02-21 17:20:05 +08:00
parent 724fc7f37e
commit 52ee2e0a8b
4 changed files with 17 additions and 17 deletions

View File

@ -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"`

View File

@ -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,
}