Copy tags on duplicating

This commit is contained in:
Cohee
2024-03-28 01:13:54 +02:00
parent 03582a8ec6
commit 6ed604593c
4 changed files with 34 additions and 9 deletions

View File

@ -1008,7 +1008,7 @@ router.post('/duplicate', jsonParser, async function (request, response) {
fs.copyFileSync(filename, newFilename);
console.log(`${filename} was copied to ${newFilename}`);
response.sendStatus(200);
response.send({ path: path.parse(newFilename).base });
}
catch (error) {
console.error(error);