fix: Update dbcomponent at runtime when name changes
Some checks are pending
Publish Docker image to Dockerhub / test (push) Waiting to run
Publish Docker image to Dockerhub / Build OCI Images (push) Blocked by required conditions
Publish Docker image to Dockerhub / Build OCI Images-1 (push) Blocked by required conditions
Publish Docker image to Dockerhub / Merge OCI Images and Push (push) Blocked by required conditions

#721
This commit is contained in:
FoxxMD 2026-09-22 16:58:01 +00:00
parent 7fd368522d
commit 1b244ff01b

View file

@ -166,6 +166,7 @@ export default abstract class AbstractComponent extends AbstractInitializable {
// update name on startup in case user has changed it
if(this.dbComponent.name !== (this.config?.name ?? this.name)) {
await this.componentRepo.updateById(this.componentId, {name: this.config?.name ?? this.name});
this.dbComponent.name = (this.config?.name ?? this.name);
}
this.playRepo = new DrizzlePlayRepository(this.db, {logger: this.logger});
this.queueRepo = new DrizzleQueueRepository(this.db, {logger: this.logger});