Skip to content

Commit

Permalink
fix: update Newsletter Scheduling Func
Browse files Browse the repository at this point in the history
  • Loading branch information
slowhigh committed Jun 3, 2024
1 parent 4d80016 commit 212e7a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ func publish(conf *Config, db *gorm.DB, subscription entity.Subscription) {
param = make([]interface{}, 0)
)

where = append(where, "? <= item_published")
param = append(param, subscription.Published)

if len(subscription.PreferredCompanyArr) > 0 {
where = append(where, "feed_id IN ?")
param = append(param, []int64(subscription.PreferredCompanyArr))
Expand Down

0 comments on commit 212e7a3

Please sign in to comment.