Undo changes

This commit is contained in:
Adria Navarro 2024-11-07 10:53:02 +01:00
parent db48e913e9
commit 7126534bd2
2 changed files with 2 additions and 6 deletions

View File

@ -17,10 +17,6 @@ export default class AuditLogsProcessor implements EventProcessor {
static auditLogsEnabled = false
static auditLogQueue: BullQueue.Queue<AuditLogQueueEvent>
get queue() {
return AuditLogsProcessor.auditLogQueue
}
// can't use constructor as need to return promise
static init(fn: AuditLogFn) {
AuditLogsProcessor.auditLogsEnabled = true

View File

@ -5,8 +5,8 @@ import Processors from "./Processors"
import { AuditLogFn } from "@budibase/types"
export const analyticsProcessor = new AnalyticsProcessor()
export const loggingProcessor = new LoggingProcessor()
export const auditLogsProcessor = new AuditLogsProcessor()
const loggingProcessor = new LoggingProcessor()
const auditLogsProcessor = new AuditLogsProcessor()
export function init(auditingFn: AuditLogFn) {
return AuditLogsProcessor.init(auditingFn)