mirror of
https://github.com/gogs/gogs.git
synced 2025-12-22 00:00:07 +01:00
all: unwrap database.ActionsStore interface (#7686)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user