adapt api endpoint, resolve id parameter passed in api functions

This commit is contained in:
2021-05-10 10:43:28 +02:00
parent 43f3270171
commit dcd1856ebb
3 changed files with 34 additions and 28 deletions

View File

@@ -3,8 +3,7 @@ import { createStore } from 'vuex';
import { getAccompanyingCourse, postParticipation } from '../api';
const debug = process.env.NODE_ENV !== 'production';
const id = window.accompanyingCourseId; //tmp
const id = window.accompanyingCourseId;
let initPromise = getAccompanyingCourse(id)
.then(accompanying_course => new Promise((resolve, reject) => {