修复(#129): 新注册用户不命中沉默促销
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -165,7 +165,7 @@ func evaluateInactiveUserPromo(
|
||||
Take(&lastSub).Error
|
||||
if err != nil {
|
||||
if errors.Is(err, gorm.ErrRecordNotFound) {
|
||||
return true, ruleExpiresAt, nil
|
||||
return false, time.Time{}, nil
|
||||
}
|
||||
return false, time.Time{}, errors.Wrapf(xerr.NewErrCode(xerr.DatabaseQueryError), "query promo inactive user subscription failed")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user