diff --git a/CommonServer/Services/DatabaseService.ts b/CommonServer/Services/DatabaseService.ts index 4ff8368f69..a22b65eafc 100644 --- a/CommonServer/Services/DatabaseService.ts +++ b/CommonServer/Services/DatabaseService.ts @@ -882,7 +882,7 @@ class DatabaseService { numberOfDocsAffected = ( - await this.getRepository().softDelete( + await this.getRepository().delete( beforeDeleteBy.query as any ) ).affected || 0; diff --git a/Probe/Jobs/Monitor/FetchList.ts b/Probe/Jobs/Monitor/FetchList.ts index d787c36546..6ae03e0045 100644 --- a/Probe/Jobs/Monitor/FetchList.ts +++ b/Probe/Jobs/Monitor/FetchList.ts @@ -21,7 +21,7 @@ RunCron( }, async () => { - // run a set timeout function randomly between 1 to 5 seconds + // run a set timeout function randomly between 1 to 5 seconds, so same probes do not hit the server at the same time setTimeout(async () => { const result: HTTPResponse | HTTPErrorResponse =