mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-20 02:06:43 -06:00
feat: prisma
This commit is contained in:
parent
272bed1351
commit
35f97e08dd
@ -304,6 +304,7 @@ export class WAMonitoringService {
|
||||
|
||||
this.logger.verbose('cleaning store database instance: ' + instanceName);
|
||||
|
||||
if (this.db.PROVIDER === 'mongodb') {
|
||||
await AuthModel.deleteMany({ _id: instanceName });
|
||||
await WebhookModel.deleteMany({ _id: instanceName });
|
||||
await ChatwootModel.deleteMany({ _id: instanceName });
|
||||
@ -317,6 +318,7 @@ export class WAMonitoringService {
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
public async loadInstance() {
|
||||
this.logger.verbose('Loading instances');
|
||||
|
Loading…
Reference in New Issue
Block a user