Skip to content

Commit

Permalink
fixed encrypted name
Browse files Browse the repository at this point in the history
  • Loading branch information
larryrider committed Nov 13, 2024
1 parent 9e23d01 commit eba4c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/services/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ module.exports = (Model, App) => {
}

const plainName = file.plainName ?? file.plain_name ?? App.services.Crypt.decryptName(file.name, file.folder_id);
const destinationName = App.services.Crypt.encryptName(originalName, destination);
const destinationName = App.services.Crypt.encryptName(plainName, destination);

const exists = await Model.file.findOne({
where: {
Expand Down

0 comments on commit eba4c36

Please sign in to comment.