chore: revision to overwriteExistingFields
This commit is contained in:
@@ -137,7 +137,7 @@ async function update(incomingArgs: Arguments): Promise<Document> {
|
||||
const file = ((req.files && req.files.file) ? req.files.file : req.file) as UploadedFile;
|
||||
|
||||
if (file) {
|
||||
const fsSafeName = overwriteExistingFiles ? await getSafeFilename(staticPath, file.name) : file.name;
|
||||
const fsSafeName = !overwriteExistingFiles ? await getSafeFilename(staticPath, file.name) : file.name;
|
||||
|
||||
try {
|
||||
if (!disableLocalStorage) {
|
||||
|
||||
Reference in New Issue
Block a user