Getting proper tenant ID for use by audit logs queue.
This commit is contained in:
parent
9731a9b53e
commit
2bc0e988af
|
@ -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(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue