diff --git a/medods_handler.py b/medods_handler.py index e0b859b..f95764d 100644 --- a/medods_handler.py +++ b/medods_handler.py @@ -61,7 +61,7 @@ def updateUsersBirthdate() -> bool: if changes: db.session.commit() else: - newUser = UsersMedods( + newUser = UsersBirthdate( id=user["id"], name=user["name"], short_name=user["short_name"], diff --git a/static/js/birthdate.js b/static/js/birthdate.js index 0dfd0c6..568651a 100644 --- a/static/js/birthdate.js +++ b/static/js/birthdate.js @@ -432,7 +432,7 @@ async function saveSchedulerSettings() { // Обновление списка сотрудников async function refreshUsersList() { try { - const response = await fetch('/api/birthdate?action=update', { + const response = await fetch('/api/birthdate', { method: 'PATCH' });