diff options
Diffstat (limited to 'internal/db/bundb/poll.go')
| -rw-r--r-- | internal/db/bundb/poll.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/bundb/poll.go b/internal/db/bundb/poll.go index f5c33ce9b..b9384774b 100644 --- a/internal/db/bundb/poll.go +++ b/internal/db/bundb/poll.go @@ -29,7 +29,7 @@ import ( "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" "github.com/superseriousbusiness/gotosocial/internal/log" "github.com/superseriousbusiness/gotosocial/internal/state" - "github.com/superseriousbusiness/gotosocial/internal/util" + "github.com/superseriousbusiness/gotosocial/internal/util/xslices" "github.com/uptrace/bun" ) @@ -315,7 +315,7 @@ func (p *pollDB) GetPollVotes(ctx context.Context, pollID string) ([]*gtsmodel.P // Reorder the poll votes by their // IDs to ensure in correct order. getID := func(v *gtsmodel.PollVote) string { return v.ID } - util.OrderBy(votes, voteIDs, getID) + xslices.OrderBy(votes, voteIDs, getID) if gtscontext.Barebones(ctx) { // no need to fully populate. |
