Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix grafana metric bugs #88

Merged
merged 2 commits into from
Aug 3, 2024
Merged

fix grafana metric bugs #88

merged 2 commits into from
Aug 3, 2024

Conversation

Haximos
Copy link
Contributor

@Haximos Haximos commented Aug 3, 2024

No description provided.

@@ -29,7 +29,6 @@ func GetSumOfBids(db *gorm.DB, adID uint) (int64, error) {
err := db.Model(&models.AdsInteraction{}).
Where("ad_id = ? AND type = ? AND event_time BETWEEN ? AND ?", adID, eventType, endTime, startTime).
Select("SUM(bid)").
Debug().
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.Debug() is necessary for getting field Valid

Copy link
Contributor

@MSPoulaei MSPoulaei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolve the comment

@MSPoulaei MSPoulaei merged commit 7863fb3 into main Aug 3, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants