enzostvs HF staff commited on
Commit
7d37fee
·
1 Parent(s): 5bdd754

update sh file

Browse files
Files changed (1) hide show
  1. src/routes/api/generate/+server.ts +0 -2
src/routes/api/generate/+server.ts CHANGED
@@ -81,8 +81,6 @@ export async function POST({ request, cookies } : RequestEvent) {
81
  }
82
  const file_name_formatted = randomUUID() + "_" + generation?.inputs?.replaceAll(/[^a-zA-Z0-9]/g, "-") + ".png"
83
  await promises.writeFile(`${publicEnv.PUBLIC_FILE_UPLOAD_DIR}/${file_name_formatted}`, response)
84
- // create symlink
85
- await promises.symlink(`./static${publicEnv.PUBLIC_FILE_UPLOAD_DIR}/${file_name_formatted}`, `${publicEnv.PUBLIC_FILE_UPLOAD_DIR}/${file_name_formatted}`, "file")
86
 
87
  gallery = await prisma.gallery.create({
88
  data: {
 
81
  }
82
  const file_name_formatted = randomUUID() + "_" + generation?.inputs?.replaceAll(/[^a-zA-Z0-9]/g, "-") + ".png"
83
  await promises.writeFile(`${publicEnv.PUBLIC_FILE_UPLOAD_DIR}/${file_name_formatted}`, response)
 
 
84
 
85
  gallery = await prisma.gallery.create({
86
  data: {