fix console.log

This commit is contained in:
Sara Vieira committed 2022-07-19 13:31:00 +02:00
1 parent 81d53fea24
commit 12237eea7a
1 file changed
+2 -3
+2 -3
View File
@@ -33,15 +33,14 @@ export const action: ActionFunction = async ({ request, params }) => {
if (params.id === undefined) throw new Error("Project id undefined");
if (request.method === "POST") {
try {
const a = await uploadAssets({
const assets = await uploadAssets({
request,
projectId: params.id,
db,
dirname: __dirname,
});
console.log(a);
return {
ok: true,
assets,
};
} catch (error) {
if (error instanceof Error) {