🐛 Fix daily sign batch list query issue

This commit is contained in:
2024-09-07 19:12:42 +08:00
parent 3ce5ef6617
commit d4ed047ed7
2 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@ func listDailySignRecord(c *fiber.Ctx) error {
var count int64
if err := database.C.
Model(&models.Account{}).
Model(&models.SignRecord{}).
Where("account_id = ?", user.ID).
Count(&count).Error; err != nil {
return fiber.NewError(fiber.StatusInternalServerError, err.Error())