diff options
Diffstat (limited to 'internal/db/list.go')
-rw-r--r-- | internal/db/list.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/db/list.go b/internal/db/list.go index 16a0207de..a57f0ed23 100644 --- a/internal/db/list.go +++ b/internal/db/list.go @@ -33,6 +33,9 @@ type List interface { // GetListsForAccountID gets all lists owned by the given accountID. GetListsForAccountID(ctx context.Context, accountID string) ([]*gtsmodel.List, error) + // CountListsForAccountID counts the number of lists owned by the given accountID. + CountListsForAccountID(ctx context.Context, accountID string) (int, error) + // PopulateList ensures that the list's struct fields are populated. PopulateList(ctx context.Context, list *gtsmodel.List) error |