mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-19 20:02:20 -06:00
prisma orm: all endpoints ok
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
import { HttpsProxyAgent } from 'https-proxy-agent';
|
||||
|
||||
import { wa } from '../api/types/wa.types';
|
||||
type Proxy = {
|
||||
host: string;
|
||||
password?: string;
|
||||
port: string;
|
||||
protocol: string;
|
||||
username?: string;
|
||||
};
|
||||
|
||||
export function makeProxyAgent(proxy: wa.Proxy | string) {
|
||||
export function makeProxyAgent(proxy: Proxy | string) {
|
||||
if (typeof proxy === 'string') {
|
||||
return new HttpsProxyAgent(proxy);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user