mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 08:42:08 +10:00
Correction
This commit is contained in:
@ -253,7 +253,9 @@ export class ResumeService {
|
|||||||
} else {
|
} else {
|
||||||
const path = `${__dirname}/../assets/uploads/${userId}/${id}/`;
|
const path = `${__dirname}/../assets/uploads/${userId}/${id}/`;
|
||||||
fs.mkdir(path, { recursive: true }, (err) => {
|
fs.mkdir(path, { recursive: true }, (err) => {
|
||||||
if (err) throw err;
|
if (err) {
|
||||||
|
console.log(err);
|
||||||
|
}
|
||||||
fs.writeFile(path + filename, file.buffer, (err) => {
|
fs.writeFile(path + filename, file.buffer, (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
|
|||||||
Reference in New Issue
Block a user