Skip to content

Commit

Permalink
Change named of the server action for getting signed upload URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavberi committed Nov 12, 2024
1 parent 0154f8c commit 123b08b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { getClient } from "gql/client";
import { GET_SIGNED_UPLOAD_URL } from "gql/queries/misc";

export async function uploadFiles() {
export async function getSignedUploadURL() {
const response = { ok: false, error: null, data: null };

try {
Expand Down
4 changes: 2 additions & 2 deletions src/utils/files.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { uploadFiles } from "actions/files/upload/server_action";
import { getSignedUploadURL } from "actions/files/signed-url/server_action";
import dynamic from "next/dynamic";

const FILESERVER_URL = process.env.NEXT_PUBLIC_FILESERVER_URL || "http://files";
Expand Down Expand Up @@ -91,7 +91,7 @@ export async function uploadFile(
}

// get signed url
let res = await uploadFiles();
let res = await getSignedUploadURL();
if (!res.ok) {
throw res.error;
}
Expand Down

0 comments on commit 123b08b

Please sign in to comment.