Skip to content

Commit 6b447c6

Browse files
committed
Fix instance validation condition
1 parent ff98d07 commit 6b447c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/services/monitor.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export class WAMonitoringService {
122122
where: { name: instanceName },
123123
});
124124

125-
if (!findInstance) {
125+
if (findInstance) {
126126
const instance = await this.prismaRepository.instance.update({
127127
where: { name: instanceName },
128128
data: { connectionStatus: 'close' },

0 commit comments

Comments
 (0)