Compare commits

..

2 Commits

Author SHA1 Message Date
ec928cf631 Bump version: 1.3.50 → 1.3.51
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 1m31s
2025-07-18 16:58:45 +01:00
9e3348d9b6 notification 2025-07-18 16:58:42 +01:00
3 changed files with 20 additions and 4 deletions

View File

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

View File

@ -1 +1 @@
1.3.50 1.3.51

View File

@ -127,13 +127,29 @@
} }
function saveSubscription(subscription) { function saveSubscription(subscription) {
console.log('Attempting to save subscription...');
fetch('/save-subscription', { fetch('/save-subscription', {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json'
'Authorization': 'Basic {{ session.auth_credentials }}'
}, },
body: JSON.stringify(subscription) body: JSON.stringify(subscription)
})
.then(response => {
if (response.ok) {
console.log('Subscription saved successfully.');
return response.json();
} else {
console.error('Failed to save subscription. Status:', response.status);
response.text().then(text => console.error('Server response:', text));
throw new Error('Failed to save subscription.');
}
})
.then(data => {
console.log('Server response on save:', data);
})
.catch(err => {
console.error('Error during saveSubscription fetch:', err);
}); });
} }