From 1e7ad8e5cf45020ae9e8853e5ae2f27fc3562ed2 Mon Sep 17 00:00:00 2001 From: kim Date: Mon, 16 Sep 2024 17:16:54 +0100 Subject: [PATCH] rename function to read a bit better --- internal/db/bundb/list.go | 2 +- internal/db/list.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/db/bundb/list.go b/internal/db/bundb/list.go index 05ea1281c..03dff95e3 100644 --- a/internal/db/bundb/list.go +++ b/internal/db/bundb/list.go @@ -99,7 +99,7 @@ func (l *listDB) CountListsByAccountID(ctx context.Context, accountID string) (i return len(listIDs), err } -func (l *listDB) GetListsWithFollowID(ctx context.Context, followID string) ([]*gtsmodel.List, error) { +func (l *listDB) GetListsContainingFollowID(ctx context.Context, followID string) ([]*gtsmodel.List, error) { listIDs, err := l.getListIDsWithFollowID(ctx, followID) if err != nil { return nil, err diff --git a/internal/db/list.go b/internal/db/list.go index 8ae05da83..4ce0ff988 100644 --- a/internal/db/list.go +++ b/internal/db/list.go @@ -37,8 +37,8 @@ type List interface { // CountListsByAccountID counts the number of lists owned by the given accountID. CountListsByAccountID(ctx context.Context, accountID string) (int, error) - // GetListsWithFollowID gets all lists that contain the given follow with ID. - GetListsWithFollowID(ctx context.Context, followID string) ([]*gtsmodel.List, error) + // GetListsContainingFollowID gets all lists that contain the given follow with ID. + GetListsContainingFollowID(ctx context.Context, followID string) ([]*gtsmodel.List, error) // GetFollowIDsInList returns all the follow IDs contained within given list ID. GetFollowIDsInList(ctx context.Context, listID string, page *paging.Page) ([]string, error)