change soft delete to hard delete

This commit is contained in:
Simon Larsen 2023-05-14 13:10:20 +01:00
parent 4257f1c576
commit f15c20f6e5
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
2 changed files with 2 additions and 2 deletions

View File

@ -882,7 +882,7 @@ class DatabaseService<TBaseModel extends BaseModel> {
numberOfDocsAffected =
(
await this.getRepository().softDelete(
await this.getRepository().delete(
beforeDeleteBy.query as any
)
).affected || 0;

View File

@ -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<JSONArray> | HTTPErrorResponse =