Skip to content

Commit

Permalink
fix tag creation - fix #62
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Jun 13, 2024
1 parent 6663748 commit 54cb7fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/src/services/TagServices/CreateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ const CreateService = async ({
throw new AppError(err.message);
}

if (kanban === null) {
kanban = 0;
}

const [tag] = await Tag.findOrCreate({
where: { name, color, kanban, companyId },
defaults: { name, color, kanban, companyId }
Expand Down

0 comments on commit 54cb7fe

Please sign in to comment.