mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 19:29:30 +00:00
fix notification url delete
This commit is contained in:
@@ -6,10 +6,10 @@ type AppriseTaskNameType =
|
||||
| 'download_pending'
|
||||
| 'check_reindex';
|
||||
|
||||
const deleteAppriseNotificationUrl = async (taskName: AppriseTaskNameType) => {
|
||||
const deleteAppriseNotificationUrl = async (taskName: AppriseTaskNameType, url: string) => {
|
||||
return APIClient('/api/task/notification/', {
|
||||
method: 'DELETE',
|
||||
body: { task_name: taskName },
|
||||
body: { task_name: taskName, url: url },
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -519,7 +519,10 @@ const SettingsScheduling = () => {
|
||||
className="danger-button"
|
||||
label="Delete"
|
||||
onClick={async () => {
|
||||
await deleteAppriseNotificationUrl(key as AppriseTaskNameType);
|
||||
await deleteAppriseNotificationUrl(
|
||||
key as AppriseTaskNameType,
|
||||
url,
|
||||
);
|
||||
|
||||
setRefresh(true);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user