refactor(core): Move integration test utils for insights (#16693)

This commit is contained in:
Iván Ovejero
2025-06-25 17:32:54 +02:00
committed by GitHub
parent a6ded1fc80
commit 7c33292483
231 changed files with 684 additions and 651 deletions

View File

@@ -1,4 +1,5 @@
import { CreateApiKeyRequestDto, UpdateApiKeyRequestDto } from '@n8n/api-types';
import { AuthenticatedRequest } from '@n8n/db';
import { Body, Delete, Get, Param, Patch, Post, RestController } from '@n8n/decorators';
import { getApiKeyScopesForRole } from '@n8n/permissions';
import type { RequestHandler } from 'express';
@@ -6,7 +7,6 @@ import type { RequestHandler } from 'express';
import { BadRequestError } from '@/errors/response-errors/bad-request.error';
import { EventService } from '@/events/event.service';
import { isApiEnabled } from '@/public-api';
import { AuthenticatedRequest } from '@/requests';
import { PublicApiKeyService } from '@/services/public-api-key.service';
export const isApiEnabledMiddleware: RequestHandler = (_, res, next) => {