Skip to content

Commit afb54c4

Browse files
authored
RM-227: Fix patreon grace period (#2)
* Improve entitlement grace period and removal logic Refactors the handling of entitlement grace periods and removal. Now, grace periods are explicitly started by setting expires_at, and entitlements are only deleted after the grace period expires. Also restores entitlements from grace period if a subscription is reactivated, and improves checks for expired entitlements. * Prune unused Go module dependencies (go mod tidy) Removed several indirect dependencies from go.mod and go.sum that are no longer required. Added github.com/google/go-cmp v0.6.0 as an indirect dependency. * Bump database
1 parent 5aa74d9 commit afb54c4

3 files changed

Lines changed: 120 additions & 158 deletions

File tree

go.mod

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,22 @@ module github.com/TicketsBot/patreon-db-sync
22

33
go 1.25.3
44

5+
//replace github.com/TicketsBot-cloud/common => ../common
6+
7+
//replace github.com/TicketsBot-cloud/database => ../database
8+
59
require (
6-
github.com/TicketsBot-cloud/common v0.0.0-20250509064208-a2d357175463
7-
github.com/TicketsBot-cloud/database v0.0.0-20250603194547-7b95c33be9d4
10+
github.com/TicketsBot-cloud/common v0.0.0-20251026182733-99fa0dc31d90
11+
github.com/TicketsBot-cloud/database v0.0.0-20260109201824-cc9d14d0da93
812
github.com/caarlos0/env/v11 v11.2.2
913
github.com/getsentry/sentry-go v0.33.0
1014
github.com/google/uuid v1.6.0
1115
github.com/jackc/pgx/v4 v4.18.3
12-
go.uber.org/zap v1.27.0
16+
go.uber.org/zap v1.27.1
1317
)
1418

1519
require (
16-
github.com/TicketsBot-cloud/gdl v0.0.0-20250509054940-2045fbe19c06 // indirect
17-
github.com/TicketsBot/ttlcache v1.6.1-0.20200405150101-acc18e37b261 // indirect
18-
github.com/boltdb/bolt v1.3.1 // indirect
19-
github.com/cespare/xxhash/v2 v2.1.1 // indirect
20-
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
21-
github.com/go-errors/errors v1.4.2 // indirect
22-
github.com/go-redis/redis/v8 v8.11.3 // indirect
20+
github.com/google/go-cmp v0.6.0 // indirect
2321
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
2422
github.com/jackc/pgconn v1.14.3 // indirect
2523
github.com/jackc/pgio v1.0.0 // indirect
@@ -30,16 +28,11 @@ require (
3028
github.com/jackc/pgx v3.6.2+incompatible // indirect
3129
github.com/jackc/puddle v1.3.0 // indirect
3230
github.com/json-iterator/go v1.1.12 // indirect
33-
github.com/juju/ratelimit v1.0.1 // indirect
3431
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
3532
github.com/modern-go/reflect2 v1.0.2 // indirect
36-
github.com/pasztorpisti/qs v0.0.0-20171216220353-8d6c33ee906c // indirect
3733
github.com/pkg/errors v0.9.1 // indirect
38-
github.com/sirupsen/logrus v1.9.0 // indirect
3934
go.uber.org/multierr v1.11.0 // indirect
40-
golang.org/x/crypto v0.39.0 // indirect
41-
golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f // indirect
42-
golang.org/x/sync v0.15.0 // indirect
43-
golang.org/x/sys v0.33.0 // indirect
44-
golang.org/x/text v0.26.0 // indirect
35+
golang.org/x/crypto v0.46.0 // indirect
36+
golang.org/x/sys v0.39.0 // indirect
37+
golang.org/x/text v0.32.0 // indirect
4538
)

0 commit comments

Comments
 (0)