mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 07:10:53 +00:00
change soft delete to hard delete
This commit is contained in:
parent
4257f1c576
commit
f15c20f6e5
@ -882,7 +882,7 @@ class DatabaseService<TBaseModel extends BaseModel> {
|
||||
|
||||
numberOfDocsAffected =
|
||||
(
|
||||
await this.getRepository().softDelete(
|
||||
await this.getRepository().delete(
|
||||
beforeDeleteBy.query as any
|
||||
)
|
||||
).affected || 0;
|
||||
|
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user