Compare commits

..

2 Commits

Author SHA1 Message Date
b274bf12d3 Bump version: 1.3.47 → 1.3.48
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 1m27s
2025-07-18 16:09:34 +01:00
868571f1a8 logging on requesst 2025-07-18 16:09:30 +01:00
3 changed files with 22 additions and 5 deletions

View File

@ -1,5 +1,5 @@
[tool.bumpversion] [tool.bumpversion]
current_version = "1.3.47" current_version = "1.3.48"
commit = true commit = true
tag = true tag = true
tag_name = "{new_version}" tag_name = "{new_version}"

View File

@ -1 +1 @@
1.3.47 1.3.48

View File

@ -70,9 +70,26 @@
event.preventDefault(); event.preventDefault();
fetch('{{ url_for("send_test_notification") }}', { fetch('{{ url_for("send_test_notification") }}', {
method: 'POST' method: 'POST'
}).then(response => response.json()) }).then(response => {
.then(data => console.log(data.message)) console.log('Response status:', response.status);
.catch(err => console.error('Error sending test notification:', err)); console.log('Response headers:', response.headers);
return response.text().then(text => {
console.log('Response body:', text);
try {
return JSON.parse(text);
} catch (e) {
console.error('Failed to parse JSON:', e);
throw new Error('Server returned non-JSON response');
}
});
}).then(data => {
console.log('Parsed data:', data);
if (data.message) {
console.log(data.message);
}
}).catch(err => {
console.error('Error sending test notification:', err);
});
}); });
} }