修复(#129): 新注册用户不命中沉默促销

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
2026-05-29 23:25:22 -07:00
parent 3644e9ce3f
commit 3d1a004fa1
2 changed files with 60 additions and 1 deletions
+1 -1
View File
@@ -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")
}