modified: serv_nginx/bbvue/src/stores/user.js
set training plan fetch from v1/user/training-plan GET
This commit is contained in:
@@ -224,7 +224,7 @@ export const useUserStore = defineStore('user', () => {
|
||||
const fetchCurrentTrainingPlan = async () => {
|
||||
return withStoreLoading(async () => {
|
||||
try {
|
||||
const response = await apiClient.get('/user/training-plans/active')
|
||||
const response = await apiClient.get('/user/training-plans')
|
||||
console.log("debug /user/training-plans/active " + response.data)
|
||||
currentTrainingPlan.value = response.data
|
||||
return { success: true, data: currentTrainingPlan.value }
|
||||
|
||||
Reference in New Issue
Block a user