diff --git a/apps/be/src/app/tasks/schemas/task.schema.ts b/apps/be/src/app/tasks/schemas/task.schema.ts index 86e2c9a..8f05731 100644 --- a/apps/be/src/app/tasks/schemas/task.schema.ts +++ b/apps/be/src/app/tasks/schemas/task.schema.ts @@ -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 })