Updated permanentDelete to receive user context as the first argument (#26884)

Co-authored-by: Ezekiel <ezekielchow94@gmail.com>
Этот коммит содержится в:
Ben Schumacher
2024-04-29 10:44:55 +02:00
коммит произвёл GitHub
родитель a6aa92d149
Коммит 5746bb8df3
21 изменённых файлов: 245 добавлений и 248 удалений

Просмотреть файл

@@ -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",