mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
fix: secret handling and relation naming logic
Implemented improved handling for secrets in `DbModuleManager`, allowing secret merging and building before saving. Enhanced `ManyToManyRelation` naming to produce valid identifiers and ensured better testing coverage for both changes.
This commit is contained in:
@@ -180,8 +180,15 @@ export class ManyToManyRelation extends EntityRelation<typeof ManyToManyRelation
|
||||
|
||||
override getName(): string {
|
||||
return [
|
||||
super.getName(),
|
||||
[this.connectionEntity.name, this.connectionTableMappedName].filter(Boolean),
|
||||
...Array.from(
|
||||
new Set(
|
||||
[
|
||||
this.type().replace(":", ""),
|
||||
this.connectionEntity.name,
|
||||
this.connectionTableMappedName,
|
||||
].filter(Boolean),
|
||||
),
|
||||
),
|
||||
].join("_");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user