unpin by skylink not by id
This commit is contained in:
parent
70f5e4128d
commit
faff7fd30d
|
@ -22,8 +22,8 @@ const headers = [
|
||||||
const actions = [
|
const actions = [
|
||||||
{
|
{
|
||||||
name: "Unpin Skylink",
|
name: "Unpin Skylink",
|
||||||
action: async ({ id }, mutate) => {
|
action: async ({ skylink }, mutate) => {
|
||||||
await toast.promise(ky.delete(`/user/uploads/${id}`), {
|
await toast.promise(ky.delete(`/user/uploads/${skylink}`), {
|
||||||
pending: "Unpinning Skylink",
|
pending: "Unpinning Skylink",
|
||||||
success: "Skylink unpinned",
|
success: "Skylink unpinned",
|
||||||
error: (error) => error.message,
|
error: (error) => error.message,
|
||||||
|
|
Reference in New Issue