feat: fix path

This commit is contained in:
Nevo David 2024-03-14 17:18:10 +07:00
parent 96304b91a8
commit 9f199c06f1
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ export class PostsService {
m.path
: m.path,
type: 'image',
path: process.env.UPLOAD_DIRECTORY + m.path,
path: m.path.indexOf('http') === -1 ? process.env.UPLOAD_DIRECTORY + m.path : m.path,
})),
}))
);