[MM-32281] SqlRoleStore/GetByName: add context to allow read from master (#17176)
* role_store/GetByName: add context * propagate context in the app layer * propagate context in the app layer * add missing import Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9eceeaa8db
Коммит
28ff4dc8d0
@@ -686,7 +686,7 @@ type RoleStore interface {
|
||||
Save(role *model.Role) (*model.Role, error)
|
||||
Get(roleID string) (*model.Role, error)
|
||||
GetAll() ([]*model.Role, error)
|
||||
GetByName(name string) (*model.Role, error)
|
||||
GetByName(ctx context.Context, name string) (*model.Role, error)
|
||||
GetByNames(names []string) ([]*model.Role, error)
|
||||
Delete(roleID string) (*model.Role, error)
|
||||
PermanentDeleteAll() error
|
||||
|
||||
Ссылка в новой задаче
Block a user