Add the request context and logger to all public methods in server/channels/app/auto_responder.go (#25295)
Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9596c46115
Коммит
b19b62b83f
@@ -30,7 +30,7 @@ func TestSetAutoResponderStatus(t *testing.T) {
|
||||
userUpdated1, _ := th.App.PatchUser(th.Context, user.Id, patch, true)
|
||||
|
||||
// autoResponder is enabled, status should be OOO
|
||||
th.App.SetAutoResponderStatus(userUpdated1, user.NotifyProps)
|
||||
th.App.SetAutoResponderStatus(th.Context, userUpdated1, user.NotifyProps)
|
||||
|
||||
status, err := th.App.GetStatus(userUpdated1.Id)
|
||||
require.Nil(t, err)
|
||||
@@ -44,7 +44,7 @@ func TestSetAutoResponderStatus(t *testing.T) {
|
||||
userUpdated2, _ := th.App.PatchUser(th.Context, user.Id, patch2, true)
|
||||
|
||||
// autoResponder is disabled, status should be ONLINE
|
||||
th.App.SetAutoResponderStatus(userUpdated2, userUpdated1.NotifyProps)
|
||||
th.App.SetAutoResponderStatus(th.Context, userUpdated2, userUpdated1.NotifyProps)
|
||||
|
||||
status, err = th.App.GetStatus(userUpdated2.Id)
|
||||
require.Nil(t, err)
|
||||
|
||||
Ссылка в новой задаче
Block a user