Getting proper tenant ID for use by audit logs queue.

This commit is contained in:
mike12345567 2023-03-02 13:39:26 +00:00
parent 9731a9b53e
commit 2bc0e988af
1 changed files with 2 additions and 2 deletions

View File

@ -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(),
})
}
}