Commit 6969aa7a authored by Christopher Speller's avatar Christopher Speller Committed by GitHub

Fixing some bots actions. (#796)

parent 0e797219
......@@ -40,7 +40,7 @@ export function loadBot(botUserId) {
export function loadBots(page = 0, perPage = BOTS_PER_PAGE_DEFAULT) {
return bindClientFunc({
clientFunc: Client4.getBots,
clientFunc: Client4.getBotsIncludeDeleted,
onSuccess: BotTypes.RECEIVED_BOT_ACCOUNTS,
params: [
page,
......
......@@ -55,7 +55,7 @@ describe('Actions.Bots', () => {
it('createBot', async () => {
const bot = TestHelper.fakeBot();
nock(Client4.getBotRoute()).
nock(Client4.getBotsRoute()).
post('').
reply(200, bot);
await store.dispatch(BotActions.createBot(bot));
......
......@@ -2598,7 +2598,7 @@ export default class Client4 {
createBot = async (bot) => {
return this.doFetch(
`${this.getBotRoute()}`,
`${this.getBotsRoute()}`,
{method: 'post', body: JSON.stringify(bot)}
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment