fix warning in api/handlers/cow.go

This commit is contained in:
SowinskiBraeden committed 2022-09-27 20:46:05 -07:00
1 parent 006018da47
commit 488ab8adf3
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -66,7 +66,7 @@ type mongoInsertOneResult struct {
}
type mongoUpdateResult struct {
ur *mongo.UpdateResult
Ur *mongo.UpdateResult // capital to export field to ignore error in ../api/handlers/cow.go Ln 133 Col 26
}
type mongoSession struct {
@@ -132,7 +132,7 @@ func (mc *mongoCollection) UpdateOne(ctx context.Context, filter, update interfa
if err != nil {
return mongoUpdateResult{}, err
}
return mongoUpdateResult{ur: updateOneResult}, nil
return mongoUpdateResult{Ur: updateOneResult}, nil
}
func (sr *mongoSingleResult) Decode(v interface{}) error {