add fix
This commit is contained in:
parent
493ae72055
commit
30cb14d554
@ -220,6 +220,7 @@ func (donatService *ServiceDonat) MarkDonatPaid(
|
||||
go func(streamerID, donatID int, duration int) {
|
||||
select {
|
||||
case <-time.After(time.Duration(duration) * time.Second):
|
||||
slog.Info("Starting donate auto timeout:", duration)
|
||||
moderated := true
|
||||
updateModel := model.ModerationDonat{
|
||||
Accepted: &moderated,
|
||||
@ -235,6 +236,7 @@ func (donatService *ServiceDonat) MarkDonatPaid(
|
||||
return
|
||||
}
|
||||
if donateModel.AcceptedTime == nil {
|
||||
slog.Info("Enable auto process.")
|
||||
if err := donatService.donatRepo.ModerateDonation(
|
||||
bgCtx,
|
||||
donateModel.ID,
|
||||
|
Loading…
x
Reference in New Issue
Block a user