tango-app-api-task 3.4.1-activitylog-4 → 3.4.1-activitylog-6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-task",
3
- "version": "3.4.1-activitylog-4",
3
+ "version": "3.4.1-activitylog-6",
4
4
  "description": "Task",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -224,7 +224,7 @@ export async function createUpdateTask( req, res ) {
224
224
  let insertLogData = {
225
225
  client_id: req.body.clientId,
226
226
  createAt: new Date(),
227
- sourceCheckList_id: inputBody._id,
227
+ sourceCheckList_id: inputBody._id || checkListId,
228
228
  checkListName: inputBody.checklistName,
229
229
  fromCheckListName: '',
230
230
  type: 'task',
@@ -256,7 +256,7 @@ export async function createUpdateTask( req, res ) {
256
256
  let logObj = {
257
257
  client_id: inputBody.clientId,
258
258
  createAt: new Date(),
259
- sourceCheckList_id: inputBody._id,
259
+ sourceCheckList_id: checkListId,
260
260
  checkListName: inputBody.checklistName,
261
261
  fromCheckListName: '',
262
262
  type: 'task',
@@ -276,7 +276,7 @@ export async function createUpdateTask( req, res ) {
276
276
  let logObj = {
277
277
  client_id: inputBody.clientId,
278
278
  createAt: new Date(),
279
- sourceCheckList_id: inputBody._id,
279
+ sourceCheckList_id: inputBody._id || checkListId,
280
280
  checkListName: inputBody.checklistName,
281
281
  fromCheckListName: '',
282
282
  type: 'task',