Skip to content

Commit

Permalink
Merge pull request #17 from TableRise/fix/TR-62/Change-Nickname-to-un…
Browse files Browse the repository at this point in the history
…ique

#TR-62 - Change nickname to unique
  • Loading branch information
RasecMH authored Sep 13, 2024
2 parents 22488a8 + 365495e commit aea10e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tablerise/database-management",
"version": "4.9.0",
"version": "4.9.1",
"description": "A library to manage the project database",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
10 changes: 5 additions & 5 deletions src/models/user/UserModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const twoFactorSecretMongooseSchema = new Schema<TwoFactorSecret>(
{
secret: { type: String },
qrcode: { type: String },
active: { type: Boolean }
active: { type: Boolean },
},
{ _id: false }
);
Expand All @@ -32,11 +32,11 @@ const pictureMongooseSchema = new Schema<ImageObject>(
deleteUrl: { type: String },
request: {
success: { type: Boolean },
status: { type: Number }
}
status: { type: Number },
},
},
{ _id: false }
)
);

const userMongooseSchema = new Schema<User>(
{
Expand All @@ -45,7 +45,7 @@ const userMongooseSchema = new Schema<User>(
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 },
Expand Down

0 comments on commit aea10e5

Please sign in to comment.