We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ebbcef commit 9a51769Copy full SHA for 9a51769
src/modules/images/usecase/usecase.ts
@@ -21,7 +21,7 @@ class Usecase {
21
22
public async Store(body: Store) {
23
const newPath = CustomPathFile(getSlug(body.category), body.file)
24
- body.title = body.file.originalname.replace(RegexExtensionImage, '')
+ body.title = body.title ?? body.file.originalname.replace(RegexExtensionImage, '')
25
body.tags.push(body.title, body.category)
26
const source = readFileSync(body.file.path)
27
0 commit comments