refactor: Rename SubjectTopoligicalSorter as SubjectTopologicalSorter (#11074)

This commit is contained in:
Orhan Özalp 2025-01-20 15:04:21 -05:00 committed by GitHub
parent 7bea198b9b
commit 340f933f6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
import { QueryRunner } from "../query-runner/QueryRunner"
import { Subject } from "./Subject"
import { SubjectTopoligicalSorter } from "./SubjectTopoligicalSorter"
import { SubjectTopologicalSorter } from "./SubjectTopologicalSorter"
import { SubjectChangedColumnsComputer } from "./SubjectChangedColumnsComputer"
import { SubjectWithoutIdentifierError } from "../error/SubjectWithoutIdentifierError"
import { SubjectRemovedAndUpdatedError } from "../error/SubjectRemovedAndUpdatedError"
@ -131,7 +131,7 @@ export class SubjectExecutor {
// execute all insert operations
// console.time(".insertion");
this.insertSubjects = new SubjectTopoligicalSorter(
this.insertSubjects = new SubjectTopologicalSorter(
this.insertSubjects,
).sort("insert")
await this.executeInsertOperations()
@ -150,7 +150,7 @@ export class SubjectExecutor {
// make sure our remove subjects are sorted (using topological sorting) when multiple entities are passed for the removal
// console.time(".removal");
this.removeSubjects = new SubjectTopoligicalSorter(
this.removeSubjects = new SubjectTopologicalSorter(
this.removeSubjects,
).sort("delete")
await this.executeRemoveOperations()

View File

@ -6,7 +6,7 @@ import { TypeORMError } from "../error"
* Orders insert or remove subjects in proper order (using topological sorting)
* to make sure insert or remove operations are executed in a proper order.
*/
export class SubjectTopoligicalSorter {
export class SubjectTopologicalSorter {
// -------------------------------------------------------------------------
// Public Properties
// -------------------------------------------------------------------------