mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-19 11:52:20 -06:00
Path mapping & deps fix & bundler changed to tsup
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import { InstanceDto } from '@api/dto/instance.dto';
|
||||
import { prismaRepository } from '@api/server.module';
|
||||
import { Auth, configService, Database } from '@config/env.config';
|
||||
import { Logger } from '@config/logger.config';
|
||||
import { ForbiddenException, UnauthorizedException } from '@exceptions';
|
||||
import { NextFunction, Request, Response } from 'express';
|
||||
|
||||
import { Auth, configService, Database } from '../../config/env.config';
|
||||
import { Logger } from '../../config/logger.config';
|
||||
import { ForbiddenException, UnauthorizedException } from '../../exceptions';
|
||||
import { InstanceDto } from '../dto/instance.dto';
|
||||
import { prismaRepository } from '../server.module';
|
||||
|
||||
const logger = new Logger('GUARD');
|
||||
|
||||
async function apikey(req: Request, _: Response, next: NextFunction) {
|
||||
|
||||
@@ -1,16 +1,10 @@
|
||||
import { InstanceDto } from '@api/dto/instance.dto';
|
||||
import { cache, waMonitor } from '@api/server.module';
|
||||
import { CacheConf, configService, Database } from '@config/env.config';
|
||||
import { BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException } from '@exceptions';
|
||||
import { prismaServer } from '@libs/prisma.connect';
|
||||
import { NextFunction, Request, Response } from 'express';
|
||||
|
||||
import { CacheConf, configService, Database } from '../../config/env.config';
|
||||
import {
|
||||
BadRequestException,
|
||||
ForbiddenException,
|
||||
InternalServerErrorException,
|
||||
NotFoundException,
|
||||
} from '../../exceptions';
|
||||
import { prismaServer } from '../../libs/prisma.connect';
|
||||
import { InstanceDto } from '../dto/instance.dto';
|
||||
import { cache, waMonitor } from '../server.module';
|
||||
|
||||
async function getInstance(instanceName: string) {
|
||||
try {
|
||||
const db = configService.get<Database>('DATABASE');
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { sendTelemetry } from '@utils/sendTelemetry';
|
||||
import { NextFunction, Request, Response } from 'express';
|
||||
|
||||
import { sendTelemetry } from '../../utils/sendTelemetry';
|
||||
|
||||
class Telemetry {
|
||||
public collectTelemetry(req: Request, res: Response, next: NextFunction): void {
|
||||
sendTelemetry(req.path);
|
||||
|
||||
Reference in New Issue
Block a user