Undo changes
This commit is contained in:
parent
db48e913e9
commit
7126534bd2
|
@ -17,10 +17,6 @@ export default class AuditLogsProcessor implements EventProcessor {
|
||||||
static auditLogsEnabled = false
|
static auditLogsEnabled = false
|
||||||
static auditLogQueue: BullQueue.Queue<AuditLogQueueEvent>
|
static auditLogQueue: BullQueue.Queue<AuditLogQueueEvent>
|
||||||
|
|
||||||
get queue() {
|
|
||||||
return AuditLogsProcessor.auditLogQueue
|
|
||||||
}
|
|
||||||
|
|
||||||
// can't use constructor as need to return promise
|
// can't use constructor as need to return promise
|
||||||
static init(fn: AuditLogFn) {
|
static init(fn: AuditLogFn) {
|
||||||
AuditLogsProcessor.auditLogsEnabled = true
|
AuditLogsProcessor.auditLogsEnabled = true
|
||||||
|
|
|
@ -5,8 +5,8 @@ import Processors from "./Processors"
|
||||||
import { AuditLogFn } from "@budibase/types"
|
import { AuditLogFn } from "@budibase/types"
|
||||||
|
|
||||||
export const analyticsProcessor = new AnalyticsProcessor()
|
export const analyticsProcessor = new AnalyticsProcessor()
|
||||||
export const loggingProcessor = new LoggingProcessor()
|
const loggingProcessor = new LoggingProcessor()
|
||||||
export const auditLogsProcessor = new AuditLogsProcessor()
|
const auditLogsProcessor = new AuditLogsProcessor()
|
||||||
|
|
||||||
export function init(auditingFn: AuditLogFn) {
|
export function init(auditingFn: AuditLogFn) {
|
||||||
return AuditLogsProcessor.init(auditingFn)
|
return AuditLogsProcessor.init(auditingFn)
|
||||||
|
|
Loading…
Reference in New Issue