forked from eatvio/eatvio_app
feat(personalDiet): fixed wrong path for attach diet method
This commit is contained in:
@@ -20,7 +20,7 @@ class PersonalDietSuggestionService {
|
||||
|
||||
Future<void> attachPersonalDiet({required int consultationId, required int dietId}) async {
|
||||
try {
|
||||
await dio.post('api/chosen_plans/$consultationId/attach_diet', data: {'diet_id': dietId});
|
||||
await dio.post('/api/chosen_plans/$consultationId/attach_diet', data: {'diet_id': dietId});
|
||||
} catch (e) {
|
||||
rethrow;
|
||||
}
|
||||
@@ -28,7 +28,7 @@ class PersonalDietSuggestionService {
|
||||
|
||||
Future<void> reattachPersonalDiet({required int consultationId, required int dietId}) async {
|
||||
try {
|
||||
await dio.post('api/chosen_plans/$consultationId/re_attach_diet', data: {'diet_id': dietId});
|
||||
await dio.post('/api/chosen_plans/$consultationId/re_attach_diet', data: {'diet_id': dietId});
|
||||
} catch (e) {
|
||||
rethrow;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user