作者 郑周

提交项目优化

@@ -127,7 +127,6 @@ func (repo *NodeTaskRepository) Find(queryOptions map[string]interface{}) ([]*do @@ -127,7 +127,6 @@ func (repo *NodeTaskRepository) Find(queryOptions map[string]interface{}) ([]*do
127 query := tx.Model(&m).Where("deleted_at isnull") 127 query := tx.Model(&m).Where("deleted_at isnull")
128 128
129 if v, ok := queryOptions["now"].(time.Time); ok { 129 if v, ok := queryOptions["now"].(time.Time); ok {
130 - query.Where("next_sent_at isnull")  
131 query.Where("next_sent_at <= ?", v) 130 query.Where("next_sent_at <= ?", v)
132 } 131 }
133 132