Refactor code structure for improved readability and maintainability

This commit is contained in:
marshalyordanos
2026-08-11 19:36:00 +03:00
parent 07a120af5e
commit 35e5404b41
20 changed files with 1684 additions and 1933 deletions

View File

@@ -91,9 +91,8 @@ export class CargoTypesRepository implements ICargoTypesRepository {
/**
* Diffs the wagon-type links through the relation query builder rather than
* an entity save: junction-row inserts from save() broadcast afterInsert with
* no entity attached, which the @tria-plc/auditlog subscriber (deployed
* builds) dereferences and crashes the request on.
* an entity save, so junction rows are written without broadcasting
* afterInsert events for entity-less inserts.
*/
private async syncWagonTypes(
id: string,