@@ -264,7 +264,7 @@ func (subscriptionService *SubscriptionService) SetDefaultCreditCard(accountID i
264
264
265
265
// RunNotifyExpiringTrials function
266
266
func (subscriptionService * SubscriptionService ) RunNotifyExpiringTrials () (err error ) {
267
- params := bson.M {"active" : false , " trialPeriodEndsAt" : bson.M {operator .Lt : time .Now ().AddDate (0 , 0 , 3 ), operator .Gt : time .Now ()}}
267
+ params := bson.M {"trialPeriodEndsAt" : bson.M {operator .Lt : time .Now ().AddDate (0 , 0 , 3 ), operator .Gt : time .Now ()}}
268
268
accounts , err := accountService .FindBy (params )
269
269
for _ , account := range accounts {
270
270
user , _ := userService .OneBy (bson.M {"accountId" : account .ID })
@@ -276,7 +276,7 @@ func (subscriptionService *SubscriptionService) RunNotifyExpiringTrials() (err e
276
276
277
277
// RunNotifyPaymentFailed function
278
278
func (subscriptionService * SubscriptionService ) RunNotifyPaymentFailed () (err error ) {
279
- params := bson.M {"active" : true , " paymentFailed" : true , "paymentFailedSubscriptionEndsAt" : bson.M {operator .Lt : time .Now ().AddDate (0 , 0 , 3 ), operator .Gt : time .Now ()}}
279
+ params := bson.M {"paymentFailed" : true , "paymentFailedSubscriptionEndsAt" : bson.M {operator .Lt : time .Now ().AddDate (0 , 0 , 3 ), operator .Gt : time .Now ()}}
280
280
accounts , err := accountService .FindBy (params )
281
281
for _ , account := range accounts {
282
282
user , _ := userService .OneBy (bson.M {"accountId" : account .ID })
0 commit comments