Skip to content

Commit

Permalink
fix: mismatched swarm group id comparator
Browse files Browse the repository at this point in the history
  • Loading branch information
aldy505 committed Dec 25, 2023
1 parent e4f026f commit a705366
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions analytics/swarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"database/sql"
"fmt"
"strconv"
"time"

"github.com/teknologi-umum/captcha/shared"
Expand All @@ -14,7 +13,7 @@ import (
)

func (d *Dependency) SwarmLog(user *tb.User, groupID int64, finishedCaptcha bool) {
if strconv.FormatInt(groupID, 10) != d.HomeGroupID {
if groupID != d.HomeGroupID {
return
}

Expand Down Expand Up @@ -70,7 +69,7 @@ func (d *Dependency) SwarmLog(user *tb.User, groupID int64, finishedCaptcha bool
}

func (d *Dependency) UpdateSwarm(user *tb.User, groupID int64, finishedCaptcha bool) {
if strconv.FormatInt(groupID, 10) != d.HomeGroupID {
if groupID != d.HomeGroupID {
return
}

Expand Down

0 comments on commit a705366

Please sign in to comment.