- Fixed some api calls

This commit is contained in:
Alexis
2020-07-02 23:06:21 +02:00
parent 0101fb8a84
commit 939e384722
2 changed files with 6 additions and 6 deletions

View File

@@ -103,9 +103,9 @@ export default {
}, },
created() { created() {
// Gets all relevant info for multiple selects // Gets all relevant info for multiple selects
let fetchSchools = Schools.getSchools() let fetchSchools = Schools.getAll()
let fetchVariables = Variables.getVariables() let fetchVariables = Variables.getAll()
let fetchIngredients = Ingredients.getIngredients() let fetchIngredients = Ingredients.getAll()
Promise.all([fetchSchools, fetchVariables, fetchIngredients]) Promise.all([fetchSchools, fetchVariables, fetchIngredients])
.then(v => { .then(v => {

View File

@@ -132,9 +132,9 @@ export default {
}, },
created() { created() {
// Gets all relevant info for multiple selects // Gets all relevant info for multiple selects
let fetchSchools = Schools.getSchools() let fetchSchools = Schools.getAll()
let fetchVariables = Variables.getVariables() let fetchVariables = Variables.getAll()
let fetchIngredients = Ingredients.getIngredients() let fetchIngredients = Ingredients.getAll()
Promise.all([fetchSchools, fetchVariables, fetchIngredients]) Promise.all([fetchSchools, fetchVariables, fetchIngredients])
.then(v => { .then(v => {