Skip to content

Commit

Permalink
updated actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sujjeee committed Nov 27, 2023
1 parent 64b7fe3 commit 32899f5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { env } from '@/env.mjs';
import { catchError } from '@/lib/utils';

export default async function deleteLink({
export default async function deleteShortLink({
id,
authorization,
projectSlug,
Expand Down
2 changes: 1 addition & 1 deletion src/components/forms/create-shortlink-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { useData } from '@/lib/context/LinkContext';
import { PasswordInput } from '@/components/ui/password-input';
import { ShortLinkInput } from '@/components/ui/shortlink-input';
import { toast } from 'sonner';
import createShortLink from '@/app/_actions/shortlink';
import createShortLink from '@/app/_actions/shortlink/create';
import { useAPIResponse } from '@/lib/context/APIResponseContext';
import { Loader2 } from 'lucide-react';
import {
Expand Down
4 changes: 2 additions & 2 deletions src/components/forms/delete-shortlink-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { catchError } from '@/lib/utils';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { toast } from 'sonner';
import deleteLink from '@/app/_actions/deletelink';
import deleteShortLink from '@/app/_actions/shortlink/delete';
import { Check, Copy, Loader2, Trash2 } from 'lucide-react';
import { useAPIResponse } from '@/lib/context/APIResponseContext';

Expand All @@ -23,7 +23,7 @@ export default function DeleteShortlinkForm() {
return;
}

const response = await deleteLink({
const response = await deleteShortLink({
id: someResponseInfo?.id,
authorization: authKey,
projectSlug: projectSlug,
Expand Down

0 comments on commit 32899f5

Please sign in to comment.