all: unwrap database.ActionsStore interface (#7686)

This commit is contained in:
Joe Chen
2024-03-13 22:03:02 -04:00
committed by GitHub
parent f73edbd172
commit 6d77d6204d
9 changed files with 163 additions and 180 deletions

View File

@@ -123,7 +123,6 @@ func NewConnection(w logger.Writer) (*gorm.DB, error) {
}
// Initialize stores, sorted in alphabetical order.
Actions = NewActionsStore(db)
LoginSources = &loginSourcesStore{DB: db, files: sourceFiles}
LFS = &lfsStore{DB: db}
Notices = NewNoticesStore(db)
@@ -160,3 +159,7 @@ func SetHandle(db *gorm.DB) {
func (db *DB) AccessTokens() *AccessTokensStore {
return newAccessTokensStore(db.db)
}
func (db *DB) Actions() *ActionsStore {
return newActionsStore(db.db)
}