fix(admin-web): jobs page uses PUT instead of PATCH — matches backend API
This commit is contained in:
parent
daf1f90706
commit
e5ffdad8e8
@ -87,7 +87,7 @@ export default function JobsPage() {
|
||||
|
||||
async function handleToggle(job: Job) {
|
||||
await jobsFetch(`${job.id}`, {
|
||||
method: 'PATCH',
|
||||
method: 'PUT',
|
||||
body: JSON.stringify({ enabled: !job.enabled }),
|
||||
});
|
||||
loadData();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user