From a231054424503a737e579a8e66f6f0acf84e3932 Mon Sep 17 00:00:00 2001 From: Umputun Date: Mon, 10 Sep 2018 12:41:49 -0500 Subject: [PATCH] lint: gfs ID mismatch --- backend/app/store/avatar/gridfs.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/app/store/avatar/gridfs.go b/backend/app/store/avatar/gridfs.go index 5bbe3eb1..79c925f6 100644 --- a/backend/app/store/avatar/gridfs.go +++ b/backend/app/store/avatar/gridfs.go @@ -102,10 +102,8 @@ func (gf *GridFS) Remove(avatar string) error { func (gf *GridFS) List() (ids []string, err error) { type gfsFile struct { - Id interface{} `bson:"_id"` - ChunkSize int `bson:"chunkSize"` - UploadDate time.Time `bson:"uploadDate"` - Length int64 `bson:",minsize"` + UploadDate time.Time `bson:"uploadDate"` + Length int64 `bson:",minsize"` MD5 string Filename string `bson:",omitempty"` }