From 65a6174e2b3655ed0a4fbb12d1ac48e82486220f Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 28 Mar 2024 12:01:06 +0100 Subject: [PATCH] refs #6321 updates --- modules/ticket/back/methods/ticket/split.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ticket/back/methods/ticket/split.js b/modules/ticket/back/methods/ticket/split.js index a5905663c..8772bad87 100644 --- a/modules/ticket/back/methods/ticket/split.js +++ b/modules/ticket/back/methods/ticket/split.js @@ -38,7 +38,7 @@ module.exports = Self => { // const conn = Self.dataSource.connector; // const stmts = []; try { - const ticketsIds = tickets.map(({id}, index) => id); + const ticketsIds = tickets.map(({ticketFk}, index) => ticketFk); const ticketsCount = await Self.rawSql(` Select t.id tid, s.id sid, count(s.id) count from vn.ticket t