You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-08-09 23:17:29 +02:00
fix(server): save color when creating tag (#15106)
Pass color to tag repo on creation
This commit is contained in:
@@ -49,7 +49,8 @@ export class TagService extends BaseService {
|
||||
throw new BadRequestException(`A tag with that name already exists`);
|
||||
}
|
||||
|
||||
const tag = await this.tagRepository.create({ userId, value, parent });
|
||||
const { color } = dto;
|
||||
const tag = await this.tagRepository.create({ userId, value, color, parent });
|
||||
|
||||
return mapTag(tag);
|
||||
}
|
||||
|
Reference in New Issue
Block a user