Merge branch 'master' into redis

This commit is contained in:
Jan Prochazka
2022-03-10 11:22:39 +01:00
19 changed files with 188 additions and 168 deletions

View File

@@ -141,8 +141,8 @@ module.exports = {
},
generateUploadsFile_meta: true,
async generateUploadsFile() {
const fileName = `${uuidv1()}.html`;
async generateUploadsFile({ extension }) {
const fileName = `${uuidv1()}.${extension || 'html'}`;
return {
fileName,
filePath: path.join(uploadsdir(), fileName),