mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-17 21:31:27 +00:00
Update ProgressCleanupPart.tsx
This commit is contained in:
parent
afccb7fa4d
commit
d28f25118a
1 changed files with 2 additions and 3 deletions
|
|
@ -2,6 +2,7 @@ import { ofetch } from "ofetch";
|
|||
import { useState } from "react";
|
||||
import { useAsyncFn } from "react-use";
|
||||
|
||||
import { getAuthHeaders } from "@/backend/accounts/auth";
|
||||
import { Button } from "@/components/buttons/Button";
|
||||
import { Icon, Icons } from "@/components/Icon";
|
||||
import { Box } from "@/components/layout/Box";
|
||||
|
|
@ -20,9 +21,7 @@ async function cleanupProgressItems(
|
|||
) {
|
||||
return ofetch<CleanupResponse>(`/users/${account.userId}/progress/cleanup`, {
|
||||
method: "DELETE",
|
||||
headers: {
|
||||
Authorization: `Bearer ${account.token}`,
|
||||
},
|
||||
headers: getAuthHeaders(account.token),
|
||||
baseURL: backendUrl,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue