From bcdf726d6a516349c9fa35ddae0189e1b4d8fc3f Mon Sep 17 00:00:00 2001 From: lehuygiang28 Date: Mon, 26 Aug 2024 03:39:09 +0700 Subject: [PATCH] feat(be/tasks): :fire: remove unique constraint on name [docker-latest] --- apps/be/src/app/tasks/schemas/task.schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 })