From c9e904e769cebac16161b56d261c800ab5ace149 Mon Sep 17 00:00:00 2001 From: Cesar Holanda Date: Thu, 12 Sep 2024 21:21:09 -0300 Subject: [PATCH 1/3] fix: add required and unique to nickname --- src/models/user/UserModel.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/models/user/UserModel.ts b/src/models/user/UserModel.ts index dfa133a..02c7cfc 100644 --- a/src/models/user/UserModel.ts +++ b/src/models/user/UserModel.ts @@ -16,7 +16,7 @@ const twoFactorSecretMongooseSchema = new Schema( { secret: { type: String }, qrcode: { type: String }, - active: { type: Boolean } + active: { type: Boolean }, }, { _id: false } ); @@ -32,11 +32,11 @@ const pictureMongooseSchema = new Schema( deleteUrl: { type: String }, request: { success: { type: Boolean }, - status: { type: Number } - } + status: { type: Number }, + }, }, { _id: false } -) +); const userMongooseSchema = new Schema( { @@ -45,7 +45,7 @@ const userMongooseSchema = new Schema( providerId: { type: String }, email: { type: String, required: true, unique: true }, password: { type: String, required: true }, - nickname: { type: String }, + nickname: { type: String, required: true, unique: true }, tag: { type: String }, picture: { type: pictureMongooseSchema }, twoFactorSecret: { type: twoFactorSecretMongooseSchema }, From 9e3387268a5bd043aea10a0c21c65f9d8969bb61 Mon Sep 17 00:00:00 2001 From: Cesar Holanda Date: Thu, 12 Sep 2024 21:21:21 -0300 Subject: [PATCH 2/3] docs: version number --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6573954..16b63f9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tablerise/database-management", - "version": "4.9.0", + "version": "4.10.0", "description": "A library to manage the project database", "main": "dist/index.js", "types": "dist/index.d.ts", From 365495e8cafef161106777153425f4fcaff83e79 Mon Sep 17 00:00:00 2001 From: Cesar Holanda Date: Thu, 12 Sep 2024 21:23:05 -0300 Subject: [PATCH 3/3] docs: version number --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 16b63f9..ecdb6ed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tablerise/database-management", - "version": "4.10.0", + "version": "4.9.1", "description": "A library to manage the project database", "main": "dist/index.js", "types": "dist/index.d.ts",