fix
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Владимир Фёдоров 2023-03-12 14:06:42 +07:00
parent f6916ae5bb
commit af0b834bf3
1 changed files with 2 additions and 2 deletions

View File

@ -239,12 +239,12 @@ func GetStat(chatID int64) (map[string]int, error) {
}
for caloriesCursor.Next(context.Background()) {
var result Calories
if err := cursor.Decode(&result); err != nil {
if err := caloriesCursor.Decode(&result); err != nil {
log.Fatal(err)
}
res["Калории"] += result.Count
}
if err := cursor.Err(); err != nil {
if err := caloriesCursor.Err(); err != nil {
log.Fatal(err)
}