Skip to content

Commit

Permalink
feat(be/tasks): 🔥 remove unique constraint on name
Browse files Browse the repository at this point in the history
[docker-latest]
  • Loading branch information
lehuygiang28 committed Aug 25, 2024
1 parent e934835 commit bcdf726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/be/src/app/tasks/schemas/task.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class Task extends AbstractDocument {
@Prop({ required: true, type: Types.ObjectId, ref: User.name })
userId: Types.ObjectId;

@Prop({ unique: true, required: true, type: String })
@Prop({ required: true, type: String })
name: string;

@Prop({ required: false, default: '', type: String })
Expand Down

0 comments on commit bcdf726

Please sign in to comment.