Small bug fixes + auto cycles are now debug only!

This commit is contained in:
DJj123dj
2024-09-12 21:14:26 +02:00
parent 70048fa399
commit 20bf25aa98
3 changed files with 11 additions and 9 deletions
+3 -3
View File
@@ -277,7 +277,7 @@ export const defaultOptionsStructure = new api.ODCheckerArrayStructure("opentick
//TICKET
{name:"ticket",priority:0,properties:[{key:"type",value:"ticket"}],checker:new api.ODCheckerObjectStructure("openticket:ticket",{children:[
{key:"id",optional:false,priority:0,checker:new api.ODCheckerCustomStructure_UniqueId("openticket:ticket-id","openticket","option-ids",{regex:/^[A-Za-z0-9-éèçàêâôûî]+$/,minLength:3,maxLength:40})},
{key:"name",optional:false,priority:0,checker:new api.ODCheckerStringStructure("openticket:ticket-name",{minLength:3,maxLength:50})},
{key:"name",optional:false,priority:0,checker:new api.ODCheckerStringStructure("openticket:ticket-name",{minLength:2,maxLength:50})},
{key:"description",optional:false,priority:0,checker:new api.ODCheckerStringStructure("openticket:ticket-description",{maxLength:256})},
//TICKET BUTTON
@@ -361,7 +361,7 @@ export const defaultOptionsStructure = new api.ODCheckerArrayStructure("opentick
//WEBSITE
{name:"website",priority:0,properties:[{key:"type",value:"website"}],checker:new api.ODCheckerObjectStructure("openticket:options-website",{children:[
{key:"id",optional:false,priority:0,checker:new api.ODCheckerCustomStructure_UniqueId("openticket:website-id","openticket","option-ids",{regex:/^[A-Za-z0-9-éèçàêâôûî]+$/,minLength:3,maxLength:40})},
{key:"name",optional:false,priority:0,checker:new api.ODCheckerStringStructure("openticket:website-name",{minLength:3,maxLength:50})},
{key:"name",optional:false,priority:0,checker:new api.ODCheckerStringStructure("openticket:website-name",{minLength:2,maxLength:50})},
{key:"description",optional:false,priority:0,checker:new api.ODCheckerStringStructure("openticket:website-description",{maxLength:256})},
//WEBSITE BUTTON
@@ -386,7 +386,7 @@ export const defaultOptionsStructure = new api.ODCheckerArrayStructure("opentick
//REACTION ROLES
{name:"role",priority:0,properties:[{key:"type",value:"role"}],checker:new api.ODCheckerObjectStructure("openticket:options-role",{children:[
{key:"id",optional:false,priority:0,checker:new api.ODCheckerCustomStructure_UniqueId("openticket:role-id","openticket","option-ids",{regex:/^[A-Za-z0-9-éèçàêâôûî]+$/,minLength:3,maxLength:40})},
{key:"name",optional:false,priority:0,checker:new api.ODCheckerStringStructure("openticket:role-name",{minLength:3,maxLength:50})},
{key:"name",optional:false,priority:0,checker:new api.ODCheckerStringStructure("openticket:role-name",{minLength:2,maxLength:50})},
{key:"description",optional:false,priority:0,checker:new api.ODCheckerStringStructure("openticket:role-description",{maxLength:256})},
//ROLE BUTTON
+4 -4
View File
@@ -398,8 +398,8 @@ const loadAutoCode = () => {
}
}
}
openticket.log("Finished autoclose timeout cycle!","system",[
{key:"interval",value:openticket.defaults.getDefault("autocloseCheckInterval").toString(),hidden:true},
openticket.debug.debug("Finished autoclose timeout cycle!",[
{key:"interval",value:openticket.defaults.getDefault("autocloseCheckInterval").toString()},
{key:"closed",value:count.toString()}
])
},openticket.defaults.getDefault("autocloseCheckInterval"))
@@ -451,8 +451,8 @@ const loadAutoCode = () => {
}
}
}
openticket.log("Finished autodelete timeout cycle!","system",[
{key:"interval",value:openticket.defaults.getDefault("autodeleteCheckInterval").toString(),hidden:true},
openticket.debug.debug("Finished autodelete timeout cycle!",[
{key:"interval",value:openticket.defaults.getDefault("autodeleteCheckInterval").toString()},
{key:"deleted",value:count.toString()}
])
},openticket.defaults.getDefault("autodeleteCheckInterval"))