Skip to content

Commit

Permalink
tag modal -- when changing to public, it says: 'Name must be unique' …
Browse files Browse the repository at this point in the history
…[clni50cu0000lyr0kqarg4f6l]
  • Loading branch information
pauloendoh committed Oct 26, 2023
1 parent 052703b commit a60631e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/domains/relearn/tag/TagService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { BadRequestError } from "routing-controllers"
import { Not } from "typeorm"
import { Tag } from "../../../entities/relearn/Tag"
import TagRepository from "../../../repositories/relearn/TagRepository"

Expand All @@ -24,6 +25,7 @@ export class TagService {
where: {
name: data.name,
userId: userId,
id: Not(data.id),
},
})
if (nameExists) {
Expand Down

0 comments on commit a60631e

Please sign in to comment.