Skip to content

Commit

Permalink
fix(server): save color when creating tag (#15106)
Browse files Browse the repository at this point in the history
Pass color to tag repo on creation
  • Loading branch information
scottdesilva authored Jan 6, 2025
1 parent 6fd9f93 commit c78e9d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/services/tag.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c78e9d6

Please sign in to comment.