feat: liked project can now be deleted

This commit is contained in:
Hamzat Victor
2025-01-06 03:16:05 +01:00
parent ceeb1fbce3
commit b88feee86e
2 changed files with 91 additions and 2 deletions

View File

@ -97,7 +97,7 @@ export async function unshareSandbox(sandboxId: string, userId: string) {
}
export async function toggleLike(sandboxId: string, userId: string) {
await fetch(
const res = await fetch(
`${process.env.NEXT_PUBLIC_DATABASE_WORKER_URL}/api/sandbox/like`,
{
method: "POST",