Client - init workouts store

This commit is contained in:
Sam
2021-09-05 10:39:32 +02:00
parent 18908ce89d
commit a85860581f
11 changed files with 245 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import { IRootState } from '@/store/modules/root/types'
import { ISportsState } from '@/store/modules/sports/types'
import { IStatisticsState } from '@/store/modules/statistics/types'
import { IUserState } from '@/store/modules/user/types'
import { IWorkoutsState } from '@/store/modules/workouts/types'
export const getApiUrl = (): string => {
return process.env.NODE_ENV === 'production'
@ -21,7 +22,8 @@ export const handleError = (
| ActionContext<IRootState, IRootState>
| ActionContext<IUserState, IRootState>
| ActionContext<IStatisticsState, IRootState>
| ActionContext<ISportsState, IRootState>,
| ActionContext<ISportsState, IRootState>
| ActionContext<IWorkoutsState, IRootState>,
error: AxiosError | null,
msg = 'UNKNOWN'
): void => {