From 2bc0e988af155304f5dab02b9a543463ac4b2112 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 2 Mar 2023 13:39:26 +0000 Subject: [PATCH] Getting proper tenant ID for use by audit logs queue. --- .../backend-core/src/events/processors/AuditLogsProcessor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend-core/src/events/processors/AuditLogsProcessor.ts b/packages/backend-core/src/events/processors/AuditLogsProcessor.ts index d888d4f438..94b4e1b09f 100644 --- a/packages/backend-core/src/events/processors/AuditLogsProcessor.ts +++ b/packages/backend-core/src/events/processors/AuditLogsProcessor.ts @@ -8,7 +8,7 @@ import { HostInfo, } from "@budibase/types" import { EventProcessor } from "./types" -import { getAppId, doInTenant } from "../../context" +import { getAppId, doInTenant, getTenantId } from "../../context" import BullQueue from "bull" import { createQueue, JobQueue } from "../../queue" import { isAudited } from "../../utils" @@ -74,7 +74,7 @@ export default class AuditLogsProcessor implements EventProcessor { appId: getAppId(), hostInfo: identity.hostInfo, }, - tenantId: identity.tenantId!, + tenantId: getTenantId(), }) } }