mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
fix: fixed proxy config in manager
This commit is contained in:
parent
6a62ae85fc
commit
1f0a5a2e09
@ -14,6 +14,7 @@
|
||||
* Refactor integrations structure for modular system
|
||||
* Fixed dify agent integration
|
||||
* Update Baileys Version
|
||||
* Fixed proxy config in manager
|
||||
|
||||
# 2.0.10 (2024-08-16 16:23)
|
||||
|
||||
|
@ -89,7 +89,7 @@ export class EventController {
|
||||
instanceId: this.monitor.waInstances[instanceName].instanceId,
|
||||
},
|
||||
update: {
|
||||
...data,
|
||||
...data[this.name],
|
||||
},
|
||||
create: {
|
||||
enabled: data[this.name]?.enabled,
|
||||
|
@ -353,8 +353,19 @@ export class ChannelStartupService {
|
||||
}
|
||||
|
||||
public async setProxy(data: ProxyDto) {
|
||||
await this.prismaRepository.proxy.create({
|
||||
data: {
|
||||
await this.prismaRepository.proxy.upsert({
|
||||
where: {
|
||||
instanceId: this.instanceId,
|
||||
},
|
||||
update: {
|
||||
enabled: data?.enabled,
|
||||
host: data.host,
|
||||
port: data.port,
|
||||
protocol: data.protocol,
|
||||
username: data.username,
|
||||
password: data.password,
|
||||
},
|
||||
create: {
|
||||
enabled: data?.enabled,
|
||||
host: data.host,
|
||||
port: data.port,
|
||||
|
Loading…
Reference in New Issue
Block a user