Skip to content

Commit

Permalink
fix: fix query for accounting todo
Browse files Browse the repository at this point in the history
  • Loading branch information
huynguyenh committed Nov 13, 2023
1 parent d262adb commit a8895a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/store/operationalservice/operational_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func (s store) FindOperationByMonth(db *gorm.DB, month time.Month) ([]*model.Ope
var res []*model.OperationalService
query := db.Table("operational_services").
Preload("Currency").
Where("is_active is true and date_part('month',register_date) = ?", month)
Where("is_active is true and type = 'monthly'")

err := query.Find(&res).Error
if err != nil && err != gorm.ErrRecordNotFound {
Expand Down

0 comments on commit a8895a2

Please sign in to comment.