@social-mail/social-mail-web-server 1.5.25 → 1.5.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -190,6 +190,9 @@ export default class TempFileService {
|
|
|
190
190
|
const fileInfo = path.parse(fileName);
|
|
191
191
|
const tf = await this.createTempFile(fileInfo.ext, fileName, contentType);
|
|
192
192
|
// this should save some space...
|
|
193
|
+
if (existsSync(tf.path)) {
|
|
194
|
+
await fsp.unlink(tf.path);
|
|
195
|
+
}
|
|
193
196
|
await fsp.link(typeof src === "string" ? src : src.path, tf.path);
|
|
194
197
|
// await fsp.writeFile(tf.path, content);
|
|
195
198
|
return tf;
|