feat(api): add log settings management with auto-clear and clear days configuration

This commit is contained in:
Chang lue Tsen
2025-09-01 06:11:35 -04:00
parent 4184a32c0f
commit b6cae7bbb5
14 changed files with 210 additions and 6 deletions
@@ -199,7 +199,7 @@ func (l *CheckSubscriptionLogic) sendTrafficNotify(ctx context.Context, subs []i
}
func (l *CheckSubscriptionLogic) clearServerCache(ctx context.Context, userSubs ...*user.Subscribe) {
var subs map[int64]bool
subs := make(map[int64]bool)
for _, sub := range userSubs {
if _, ok := subs[sub.SubscribeId]; !ok {
subs[sub.SubscribeId] = true