- ver 1.1.15

This commit is contained in:
Surya Paolo
2025-01-09 17:14:31 +01:00
parent 836f7f572b
commit fa075683ae
7 changed files with 23 additions and 32 deletions

View File

@@ -1713,7 +1713,7 @@ router.post('/duprec/:table/:id', authenticate, async (req, res) => {
return await mytable.findById(id).then(async (mydata) => {
const datadup = tools.CloneRecordToNew(mydata);
const datadup = tools.CloneRecordToNew(mydata, mytable.modelName);
const mynewrec = new mytable(datadup);
return await mynewrec.save().then(async (rec) => {