AddOn/Datenexport_Zeiterfassung/test.html aktualisiert
This commit is contained in:
parent
e321dc2d4a
commit
408bb3ae26
|
|
@ -154,12 +154,12 @@
|
||||||
DateUntil: dateUntil
|
DateUntil: dateUntil
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!result.Result) {
|
if (!result) {
|
||||||
throw new Error('Kein Result im Antwortobjekt ('+result+')');
|
throw new Error('Kein Result im Antwortobjekt ('+result+')');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Exportdaten abrufen (Result ist GUID)
|
// Exportdaten abrufen (Result ist GUID)
|
||||||
const exportData = await apiRequest(baseUrl, token, apiSite, 'GET', `api/export/${result.Result}`);
|
const exportData = await apiRequest(baseUrl, token, apiSite, 'GET', `api/export/${result}`);
|
||||||
|
|
||||||
const pre = document.getElementById('exportResult');
|
const pre = document.getElementById('exportResult');
|
||||||
if (typeof exportData === 'object') {
|
if (typeof exportData === 'object') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue