1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-23 15:19:44 +02:00

ref: Rename folder to dir for consistency

This commit is contained in:
Maksim Eltyshev 2024-11-12 17:07:04 +01:00
parent 917dcf31cf
commit 9794919fd2
8 changed files with 21 additions and 21 deletions

View file

@ -16,12 +16,12 @@ module.exports = {
const fileManager = sails.hooks['file-manager'].getInstance();
const dirname = uuid();
const folderPathSegment = `${sails.config.custom.attachmentsPathSegment}/${dirname}`;
const dirPathSegment = `${sails.config.custom.attachmentsPathSegment}/${dirname}`;
const filename = filenamify(inputs.file.filename);
const filePath = await fileManager.move(
inputs.file.fd,
`${folderPathSegment}/${filename}`,
`${dirPathSegment}/${filename}`,
inputs.file.type,
);
@ -64,7 +64,7 @@ module.exports = {
.toBuffer();
await fileManager.save(
`${folderPathSegment}/thumbnails/cover-256.${thumbnailsExtension}`,
`${dirPathSegment}/thumbnails/cover-256.${thumbnailsExtension}`,
resizeBuffer,
inputs.file.type,
);