unpin by skylink not by id

This commit is contained in:
Karol Wypchlo 2021-09-25 19:22:21 +02:00
parent 70f5e4128d
commit faff7fd30d
No known key found for this signature in database
GPG Key ID: C92C016317A964D0
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@ const headers = [
const actions = [
{
name: "Unpin Skylink",
action: async ({ id }, mutate) => {
await toast.promise(ky.delete(`/user/uploads/${id}`), {
action: async ({ skylink }, mutate) => {
await toast.promise(ky.delete(`/user/uploads/${skylink}`), {
pending: "Unpinning Skylink",
success: "Skylink unpinned",
error: (error) => error.message,