1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-12 01:52:49 +00:00

server/client - eu support for fetching characters

This commit is contained in:
2018-01-26 22:41:35 -06:00
parent ce151bc0c0
commit 7344bb428a
7 changed files with 51 additions and 51 deletions

View File

@@ -15,9 +15,9 @@ const login = async (username: string, password: string): Promise<any> => {
userStore.setUser(res.data.data);
};
const getCharacters = async (): Promise<any> => {
const getCharacters = async (params: any): Promise<any> => {
try {
const res = await axios.get('/api/user/characters');
const res = await axios.get('/api/user/characters', { params });
const characters = res.data.data.characters;
if (!!characters) {
res.data.data.characters = filterCharacters(characters);