fix(order): correct renewal traffic reset logic (#37)
This commit is contained in:
@@ -14,3 +14,4 @@
|
||||
node_modules
|
||||
package-lock.json
|
||||
package.json
|
||||
/bin
|
||||
@@ -369,7 +369,7 @@ func (l *ActivateOrderLogic) Renewal(ctx context.Context, orderInfo *order.Order
|
||||
}
|
||||
|
||||
// Check whether traffic reset on renewal is enabled
|
||||
if !*sub.RenewalReset {
|
||||
if *sub.RenewalReset {
|
||||
userSub.Download = 0
|
||||
userSub.Upload = 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user