mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-28 23:33:13 +00:00
fix: serialize subscription extensions
This commit is contained in:
1 parent
3d6c207723
commit
e3cce574d7
5 files changed
+91
-46
No files matched your search
@@ -63,6 +63,10 @@ func (r *bulkActionHandlerSubscriptionRepo) GetByID(_ context.Context, id int64)
|
||||
return ©, nil
|
||||
}
|
||||
|
||||
func (r *bulkActionHandlerSubscriptionRepo) GetByIDForUpdate(ctx context.Context, id int64) (*service.UserSubscription, error) {
|
||||
return r.GetByID(ctx, id)
|
||||
}
|
||||
|
||||
func (r *bulkActionHandlerSubscriptionRepo) ExtendExpiry(_ context.Context, _ int64, expiry time.Time) error {
|
||||
r.extendCalls++
|
||||
r.sub.ExpiresAt = expiry
|
||||
|
||||
Reference in new issue
Block a user