in src/dataServices/dynamoDbBundleService.ts [87:94]
private assertValidTenancyMode(tenantId?: string) {
if (this.enableMultiTenancy && tenantId === undefined) {
throw new Error('This instance has multi-tenancy enabled, but the incoming request is missing tenantId');
}
if (!this.enableMultiTenancy && tenantId !== undefined) {
throw new Error('This instance has multi-tenancy disabled, but the incoming request has a tenantId');
}
}