@openinc/parse-server-opendash 2.4.47 → 2.4.48
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.
|
@@ -19,6 +19,7 @@ async function init() {
|
|
|
19
19
|
* If the ticket has no state, initialize it with the inbox state.
|
|
20
20
|
*/
|
|
21
21
|
async function initCurrentTicketStates() {
|
|
22
|
+
console.log("Initializing current ticket states table");
|
|
22
23
|
// Getting the tickets that have no entry in the current ticket states table (OD3_Maintenance_Ticket_Kanban_State_Current)
|
|
23
24
|
const ticketsWithoutEntry = await new Parse.Query(types_1.Maintenance_Ticket)
|
|
24
25
|
.doesNotMatchKeyInQuery("objectId",
|
|
@@ -43,7 +44,7 @@ async function initCurrentTicketStates() {
|
|
|
43
44
|
const newTicketState = new types_1.Maintenance_Ticket_Kanban_State_Current({
|
|
44
45
|
ticket: ticket,
|
|
45
46
|
ticketState: currentTicketState,
|
|
46
|
-
state: currentTicketState
|
|
47
|
+
state: currentTicketState.get("state"),
|
|
47
48
|
tenant: tenant,
|
|
48
49
|
});
|
|
49
50
|
const acl = new Parse.ACL();
|
|
@@ -81,4 +82,5 @@ async function initCurrentTicketStates() {
|
|
|
81
82
|
await newkanbanstate.save();
|
|
82
83
|
}
|
|
83
84
|
}
|
|
85
|
+
console.log("Current ticket states table initialized");
|
|
84
86
|
}
|