mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 19:45:07 +00:00
One return! Not two!
This commit is contained in:
parent
509a0a007a
commit
d05d80da7f
1 changed files with 2 additions and 2 deletions
|
|
@ -82,7 +82,7 @@ export default async (req: Request) => {
|
|||
const buf = await Deno.readAll(req.body);
|
||||
const fileURLs = JSON.parse(decoder.decode(buf));
|
||||
if (!Array.isArray(fileURLs) || fileURLs.length < 1) {
|
||||
return return new Response(
|
||||
return new Response(
|
||||
JSON.stringify({ error: "Empty file array" }),
|
||||
{ status: 422 }
|
||||
);
|
||||
|
|
@ -115,7 +115,7 @@ export default async (req: Request) => {
|
|||
|
||||
const result = await deploy(uploadedURLs);
|
||||
|
||||
return return new Response(
|
||||
return new Response(
|
||||
JSON.stringify(result.fileURLs),
|
||||
{ status: result.status }
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue