From f9a34fb330635087dfdcd63a2cabaf14750943d0 Mon Sep 17 00:00:00 2001 From: Sainan Date: Mon, 23 Dec 2024 19:42:04 +0100 Subject: [PATCH] set DisplayName to be unique in schema --- src/models/loginModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/loginModel.ts b/src/models/loginModel.ts index 9b76a310..258497ad 100644 --- a/src/models/loginModel.ts +++ b/src/models/loginModel.ts @@ -24,7 +24,7 @@ const databaseAccountSchema = new Schema( { email: { type: String, required: true, unique: true }, password: { type: String, required: true }, - DisplayName: { type: String, required: true }, + DisplayName: { type: String, required: true, unique: true }, CountryCode: { type: String, required: true }, ClientType: { type: String }, CrossPlatformAllowed: { type: Boolean, required: true },