From 8350daf505b837984397679f07ccc2324b4d2451 Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Wed, 8 Feb 2023 13:55:54 +0800 Subject: refactor(db): merge relation stores into entity stores (#7341) --- internal/db/actions.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'internal/db/actions.go') diff --git a/internal/db/actions.go b/internal/db/actions.go index 72d3b6ac..48d080b3 100644 --- a/internal/db/actions.go +++ b/internal/db/actions.go @@ -29,8 +29,6 @@ import ( ) // ActionsStore is the persistent interface for actions. -// -// NOTE: All methods are sorted in alphabetical order. type ActionsStore interface { // CommitRepo creates actions for pushing commits to the repository. An action // with the type ActionDeleteBranch is created if the push deletes a branch; an @@ -166,7 +164,7 @@ func (db *actions) ListByUser(ctx context.Context, userID, actorID, afterID int6 // notifyWatchers creates rows in action table for watchers who are able to see the action. func (db *actions) notifyWatchers(ctx context.Context, act *Action) error { - watches, err := NewWatchesStore(db.DB).ListByRepo(ctx, act.RepoID) + watches, err := NewReposStore(db.DB).ListWatches(ctx, act.RepoID) if err != nil { return errors.Wrap(err, "list watches") } -- cgit v1.2.3