forked from Yara724/api
Fixed blame resend
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { extname } from "node:path";
|
||||
import { mkdirSync } from "node:fs";
|
||||
import {
|
||||
Body,
|
||||
Controller,
|
||||
@@ -414,7 +415,9 @@ export class RequestManagementV2Controller {
|
||||
{
|
||||
storage: diskStorage({
|
||||
destination: (req, file, cb) => {
|
||||
cb(null, "./uploads");
|
||||
const uploadDir = "./files/blame-resend";
|
||||
mkdirSync(uploadDir, { recursive: true });
|
||||
cb(null, uploadDir);
|
||||
},
|
||||
filename: (req, file, cb) => {
|
||||
const uniqueSuffix =
|
||||
|
||||
Reference in New Issue
Block a user