Updated permanentDelete to receive user context as the first argument (#26884)
Co-authored-by: Ezekiel <ezekielchow94@gmail.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a6aa92d149
Коммит
5746bb8df3
@@ -169,7 +169,7 @@ func TestEnsureBot(t *testing.T) {
|
||||
assert.Equal(t, "username", bot.Username)
|
||||
assert.Equal(t, "a bot", bot.Description)
|
||||
|
||||
err = th.App.Srv().Store().User().PermanentDelete(initialBot.UserId)
|
||||
err = th.App.Srv().Store().User().PermanentDelete(th.Context, initialBot.UserId)
|
||||
require.NoError(t, err)
|
||||
botID2, err := th.App.EnsureBot(th.Context, pluginId, &model.Bot{
|
||||
Username: "another_username",
|
||||
|
||||
Ссылка в новой задаче
Block a user