Skip to content

Commit e73c5b3

Browse files
Update DBLogger.cfc
cbsecurity_logs is hard coded instead of using module setting
1 parent fb9cbe7 commit e73c5b3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

models/util/DBLogger.cfc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ component accessors="true" singleton threadsafe {
188188
"select
189189
#getLimitStart()#
190190
count( id ) as total, #arguments.column#
191-
from cbsecurity_logs
191+
from #getTable()#
192192
group by #arguments.column#
193193
order by count( id ) desc
194194
#getLimitEnd()#
@@ -207,8 +207,8 @@ component accessors="true" singleton threadsafe {
207207
struct function getActionsReport(){
208208
return queryExecute(
209209
"select
210-
count( id ) as total, action, ( count(id) / ( select count(id) from cbsecurity_logs ) ) * 100 as percentage
211-
from cbsecurity_logs
210+
count( id ) as total, action, ( count(id) / ( select count(id) from #getTable()# ) ) * 100 as percentage
211+
from #getTable()#
212212
group by action",
213213
{},
214214
{ datasource : variables.settings.firewall.logs.dsn }
@@ -230,7 +230,7 @@ component accessors="true" singleton threadsafe {
230230
*/
231231
struct function getBlockTypesReport(){
232232
return queryExecute(
233-
"select count( id ) as total, blockType from cbsecurity_logs group by blockType",
233+
"select count( id ) as total, blockType from #getTable()# group by blockType",
234234
{},
235235
{ datasource : variables.settings.firewall.logs.dsn }
236236
).reduce( ( results, row ) => {

0 commit comments

Comments
 (0)