Skip to content

Commit 0b0ac99

Browse files
committed
recommendations simple get request no params
1 parent 3dd2532 commit 0b0ac99

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

frontend/src/views/app/Browse.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,7 @@ export default {
4949
if (this.recommendationsFromSettingUp) {
5050
this.recommendations = this.recommendationsFromSettingUp;
5151
} else {
52-
const recommendationsRequest = await this.$http.get('/recommendations', {
53-
data: {
54-
force: false,
55-
},
56-
});
52+
const recommendationsRequest = await this.$http.get('/recommendations');
5753
this.recommendations = recommendationsRequest.data.recommendations;
5854
}
5955
this.recommendations.sort((a, b) => a.distance - b.distance);

frontend/src/views/app/Onboarding.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,7 @@ export default {
136136
this.slideCurrent += 1;
137137
await this.bus.$emit('send-user-location-to-backend');
138138
await this.$http.post('/profile/complete', this.userData);
139-
const recommendationsRequest = await this.$http.get('/recommendations', {
140-
data: {
141-
force: false,
142-
},
143-
});
139+
const recommendationsRequest = await this.$http.get('/recommendations');
144140
const recommendationsFromSettingUp = recommendationsRequest.data.recommendations;
145141
await this.$store.dispatch('profileCompleted');
146142
await this.$router.push({ name: Browse, params: { recommendationsFromSettingUp } });

0 commit comments

Comments
 (0)