Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix link deleting
  • Loading branch information
regalijan committed Nov 2, 2024
1 parent b0b5513 commit 4e5a46e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/api/short-links/[id].ts
@@ -1,7 +1,7 @@
import { jsonError } from "../../common.js";

export async function onRequestDelete(context: RequestContext) {
const path = context.data.body?.id;
const path = context.params.id;

if (typeof path !== "string") return jsonError("Invalid path", 400);

Expand Down

0 comments on commit 4e5a46e

Please sign in to comment.