MCPcopy Create free account
hub / github.com/evolution-foundation/evolution-api / find

Method find

src/api/services/proxy.service.ts:19–31  ·  view source on GitHub ↗
(instance: InstanceDto)

Source from the content-addressed store, hash-verified

17 }
18
19 public async find(instance: InstanceDto): Promise<Proxy> {
20 try {
21 const result = await this.waMonitor.waInstances[instance.instanceName].findProxy();
22
23 if (Object.keys(result).length === 0) {
24 throw new Error('Proxy not found');
25 }
26
27 return result;
28 } catch {
29 return null;
30 }
31 }
32}

Callers

nothing calls this directly

Calls 2

keysMethod · 0.65
findProxyMethod · 0.45

Tested by

no test coverage detected