mirror of
https://github.com/FoxxMD/multi-scrobbler.git
synced 2026-10-19 15:26:33 +00:00
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
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:
parent
7fd368522d
commit
1b244ff01b
1 changed files with 1 additions and 0 deletions
|
|
@ -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});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue