docs: use correct SQL statements in softDelete/restore comments (#11489)

This commit is contained in:
Simon Garner 2025-05-22 11:40:31 +12:00 committed by GitHub
parent 12a71e4581
commit 5003aaa7c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -927,7 +927,7 @@ export class EntityManager {
/**
* Restores entities by a given condition(s).
* Unlike save method executes a primitive operation without cascades, relations and other operations included.
* Executes fast and efficient DELETE query.
* Executes fast and efficient UPDATE query.
* Does not check if entity exist in the database.
* Condition(s) cannot be empty.
*/

View File

@ -434,7 +434,7 @@ export class Repository<Entity extends ObjectLiteral> {
/**
* Records the delete date of entities by a given criteria.
* Unlike save method executes a primitive operation without cascades, relations and other operations included.
* Executes fast and efficient SOFT-DELETE query.
* Executes fast and efficient UPDATE query.
* Does not check if entity exist in the database.
*/
softDelete(
@ -459,7 +459,7 @@ export class Repository<Entity extends ObjectLiteral> {
/**
* Restores entities by a given criteria.
* Unlike save method executes a primitive operation without cascades, relations and other operations included.
* Executes fast and efficient SOFT-DELETE query.
* Executes fast and efficient UPDATE query.
* Does not check if entity exist in the database.
*/
restore(