Updated permanentDelete to receive user context as the first argument (#26884)
Co-authored-by: Ezekiel <ezekielchow94@gmail.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a6aa92d149
Коммит
5746bb8df3
@@ -2744,7 +2744,7 @@ func TestGetUsersWithoutTeam(t *testing.T) {
|
||||
})
|
||||
require.NoError(t, err)
|
||||
th.LinkUserToTeam(user, th.BasicTeam)
|
||||
defer th.App.Srv().Store().User().PermanentDelete(user.Id)
|
||||
defer th.App.Srv().Store().User().PermanentDelete(th.Context, user.Id)
|
||||
|
||||
user2, _, err := th.Client.CreateUser(context.Background(), &model.User{
|
||||
Username: "a000000001" + model.NewId(),
|
||||
@@ -2752,7 +2752,7 @@ func TestGetUsersWithoutTeam(t *testing.T) {
|
||||
Password: "Password1",
|
||||
})
|
||||
require.NoError(t, err)
|
||||
defer th.App.Srv().Store().User().PermanentDelete(user2.Id)
|
||||
defer th.App.Srv().Store().User().PermanentDelete(th.Context, user2.Id)
|
||||
|
||||
rusers, _, err := th.SystemAdminClient.GetUsersWithoutTeam(context.Background(), 0, 100, "")
|
||||
require.NoError(t, err)
|
||||
|
||||
Ссылка в новой задаче
Block a user