0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-21 00:52:43 -05:00

fix(server): save color when creating tag (#15106)

Pass color to tag repo on creation
This commit is contained in:
scottdesilva 2025-01-06 12:21:55 -05:00 committed by GitHub
parent 6fd9f93375
commit c78e9d6ad5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,7 +49,8 @@ export class TagService extends BaseService {
throw new BadRequestException(`A tag with that name already exists`); 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); return mapTag(tag);
} }