refactor(core): Move billable execution helper to backend services (no-changelog) (#40146)

This commit is contained in:
Charlie Kolb 2026-10-02 11:46:11 +00:00 committed by GitHub
parent 0ae0b6b3c2
commit 87ca4e8bf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,5 @@
export { EventService, type EventMap } from './events/event.service';
export { isBillableExecution } from './executions/is-billable-execution';
export {
CredentialsFinderService,
CREDENTIAL_USABILITY_SCOPES,

View File

@ -1,4 +1,5 @@
import { Logger } from '@n8n/backend-common';
import { isBillableExecution } from '@n8n/backend-services';
import { SharedWorkflowRepository } from '@n8n/db';
import { OnLifecycleEvent, type WorkflowExecuteAfterContext } from '@n8n/decorators';
import { Service } from '@n8n/di';
@ -8,7 +9,6 @@ import { IRun, type ExecutionStatus, type WorkflowExecuteMode } from 'n8n-workfl
import { InsightsMetadata } from '@/modules/insights/database/entities/insights-metadata';
import { InsightsRaw } from '@/modules/insights/database/entities/insights-raw';
import { isBillableExecution } from '@/utils/is-billable-execution';
import { InsightsMetadataRepository } from './database/repositories/insights-metadata.repository';
import { InsightsRawRepository } from './database/repositories/insights-raw.repository';

View File

@ -1,5 +1,5 @@
import { Logger, TypedEmitter } from '@n8n/backend-common';
import { EventService } from '@n8n/backend-services';
import { EventService, isBillableExecution } from '@n8n/backend-services';
import { DatabaseConfig } from '@n8n/config';
import type { CrashedExecution } from '@n8n/db';
import {
@ -21,7 +21,6 @@ import {
} from 'n8n-workflow';
import { UserService } from '@/services/user.service';
import { isBillableExecution } from '@/utils/is-billable-execution';
import { INSTANCE_ACTIVATED_SETTINGS_KEY } from './instance-activation.service';
import { OwnershipService } from './ownership.service';